Make app,localization in url optional+tld+subdomain

This commit is contained in:
Dennis Eichhorn 2019-03-09 23:21:29 +01:00
parent 597247c691
commit fe54c005fd
4 changed files with 12 additions and 12 deletions

View File

@ -1,7 +1,7 @@
[ [
{ {
"id": 1002201001, "id": 1002201001,
"pid": "/backend", "pid": "/",
"type": 2, "type": 2,
"subtype": 0, "subtype": 0,
"name": "RnD", "name": "RnD",
@ -15,11 +15,11 @@
"children": [ "children": [
{ {
"id": 1002202001, "id": 1002202001,
"pid": "/backend", "pid": "/",
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Projects", "name": "Projects",
"uri": "{/lang}/backend/rnd/list?{?}", "uri": "{/prefix}rnd/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -29,11 +29,11 @@
"children": [ "children": [
{ {
"id": 1002202101, "id": 1002202101,
"pid": "/backend/rnd", "pid": "/rnd",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "List", "name": "List",
"uri": "{/lang}/backend/rnd/list?{?}", "uri": "{/prefix}rnd/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -44,11 +44,11 @@
}, },
{ {
"id": 1002202201, "id": 1002202201,
"pid": "/backend/rnd", "pid": "/rnd",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Create", "name": "Create",
"uri": "{/lang}/backend/rnd/create?{?}", "uri": "{/prefix}rnd/create?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,

View File

@ -6,7 +6,7 @@ use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb; use phpOMS\Router\RouteVerb;
return [ return [
'^.*/backend/rnd/list.*$' => [ '^.*/rnd/list.*$' => [
[ [
'dest' => '\Modules\ResearchDevelopment\Controller\BackendController:viewProjectList', 'dest' => '\Modules\ResearchDevelopment\Controller\BackendController:viewProjectList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -17,7 +17,7 @@ return [
], ],
], ],
], ],
'^.*/backend/rnd/create.*$' => [ '^.*/rnd/create.*$' => [
[ [
'dest' => '\Modules\ResearchDevelopment\Controller\BackendController:viewProjectCreate', 'dest' => '\Modules\ResearchDevelopment\Controller\BackendController:viewProjectCreate',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,

View File

@ -39,7 +39,7 @@ echo $this->getData('nav')->render(); ?>
<tr><td colspan="5"> <tr><td colspan="5">
<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/checklist/single?{?}&id=' . $value->getId()); ?> $url = \phpOMS\Uri\UriFactory::build('{/prefix}checklist/single?{?}&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/rnd" "/rnd"
], ],
"type": 4, "type": 4,
"for": 0, "for": 0,
@ -34,7 +34,7 @@
}, },
{ {
"pid": [ "pid": [
"/backend" "/"
], ],
"type": 5, "type": 5,
"from": "ResearchDevelopment", "from": "ResearchDevelopment",