Make app,localization in url optional+tld+subdomain

This commit is contained in:
Dennis Eichhorn 2019-03-09 23:21:29 +01:00
parent 4f0c8242ce
commit a24de29172
4 changed files with 15 additions and 15 deletions

View File

@ -1,11 +1,11 @@
[ [
{ {
"id": 1004301001, "id": 1004301001,
"pid": "/backend", "pid": "/",
"type": 2, "type": 2,
"subtype": 0, "subtype": 0,
"name": "Production", "name": "Production",
"uri": "{/lang}/backend/production/dashboard?{?}", "uri": "{/prefix}production/dashboard?{?}",
"target": "self", "target": "self",
"icon": "fa fa-fire", "icon": "fa fa-fire",
"order": 70, "order": 70,
@ -15,11 +15,11 @@
"children": [ "children": [
{ {
"id": 1004303001, "id": 1004303001,
"pid": "/backend", "pid": "/",
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Production", "name": "Production",
"uri": "{/lang}/backend/production/list?{?}", "uri": "{/prefix}production/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,
@ -29,11 +29,11 @@
"children": [ "children": [
{ {
"id": 1004303101, "id": 1004303101,
"pid": "/backend/production", "pid": "/production",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "List", "name": "List",
"uri": "{/lang}/backend/production/list?{?}", "uri": "{/prefix}production/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,
@ -44,11 +44,11 @@
}, },
{ {
"id": 1004303201, "id": 1004303201,
"pid": "/backend/production", "pid": "/production",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Create", "name": "Create",
"uri": "{/lang}/backend/production/create?{?}", "uri": "{/prefix}production/create?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 10, "order": 10,

View File

@ -6,7 +6,7 @@ use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb; use phpOMS\Router\RouteVerb;
return [ return [
'^.*/backend/production/list.*$' => [ '^.*/production/list.*$' => [
[ [
'dest' => '\Modules\Production\Controller\BackendController:viewProductionList', 'dest' => '\Modules\Production\Controller\BackendController:viewProductionList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -17,7 +17,7 @@ return [
], ],
], ],
], ],
'^.*/backend/production/create.*$' => [ '^.*/production/create.*$' => [
[ [
'dest' => '\Modules\Production\Controller\BackendController:viewProductionCreate', 'dest' => '\Modules\Production\Controller\BackendController:viewProductionCreate',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -28,7 +28,7 @@ return [
], ],
], ],
], ],
'^.*/backend/production/process/list.*$' => [ '^.*/production/process/list.*$' => [
[ [
'dest' => '\Modules\Production\Controller\BackendController:viewProductionProcessList', 'dest' => '\Modules\Production\Controller\BackendController:viewProductionProcessList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -39,7 +39,7 @@ return [
], ],
], ],
], ],
'^.*/backend/production/process/create.*$' => [ '^.*/production/process/create.*$' => [
[ [
'dest' => '\Modules\Production\Controller\BackendController:viewProductionProcessCreate', 'dest' => '\Modules\Production\Controller\BackendController:viewProductionProcessCreate',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,

View File

@ -42,7 +42,7 @@ echo $this->getData('nav')->render(); ?>
<tr><td colspan="8"> <tr><td colspan="8">
<tbody> <tbody>
<?php $c = 0; foreach ([] as $key => $value) : $c++; <?php $c = 0; foreach ([] as $key => $value) : $c++;
$url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/business/department/profile?{?}&id=' . $value->getId()); ?> $url = \phpOMS\Uri\UriFactory::build('{/prefix}business/department/profile?{?}&id=' . $value->getId()); ?>
<tr> <tr>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>

View File

@ -25,7 +25,7 @@
"load": [ "load": [
{ {
"pid": [ "pid": [
"/backend/production" "/production"
], ],
"type": 4, "type": 4,
"for": 0, "for": 0,
@ -34,7 +34,7 @@
}, },
{ {
"pid": [ "pid": [
"/backend" "/"
], ],
"type": 5, "type": 5,
"from": "Production", "from": "Production",