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

View File

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

View File

@ -39,7 +39,7 @@ echo $this->getData('nav')->render(); ?>
<tr><td colspan="5">
<tbody>
<?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>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>

View File

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