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

View File

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

View File

@ -42,7 +42,7 @@ echo $this->getData('nav')->render(); ?>
<tr><td colspan="8">
<tbody>
<?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>
<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/production"
"/production"
],
"type": 4,
"for": 0,
@ -34,7 +34,7 @@
},
{
"pid": [
"/backend"
"/"
],
"type": 5,
"from": "Production",