Make app,localization in url optional+tld+subdomain

This commit is contained in:
Dennis Eichhorn 2019-03-09 23:21:29 +01:00
parent 6b52c31784
commit fe32673d7b
8 changed files with 42 additions and 42 deletions

View File

@ -1,7 +1,7 @@
[ [
{ {
"id": 1002601001, "id": 1002601001,
"pid": "/backend", "pid": "/",
"type": 2, "type": 2,
"subtype": 0, "subtype": 0,
"name": "Accounting", "name": "Accounting",
@ -15,11 +15,11 @@
"children": [ "children": [
{ {
"id": 1002602001, "id": 1002602001,
"pid": "/backend", "pid": "/",
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Accounts", "name": "Accounts",
"uri": "{/lang}/backend/accounting/gl/list?{?}", "uri": "{/prefix}accounting/gl/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,
@ -29,11 +29,11 @@
"children": [ "children": [
{ {
"id": 1002602101, "id": 1002602101,
"pid": "/backend/accounting", "pid": "/accounting",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "List", "name": "List",
"uri": "{/lang}/backend/accounting/gl/list?{?}", "uri": "{/prefix}accounting/gl/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -44,11 +44,11 @@
}, },
{ {
"id": 1002602201, "id": 1002602201,
"pid": "/backend/accounting", "pid": "/accounting",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Create", "name": "Create",
"uri": "{/lang}/backend/accounting/gl/create?{?}", "uri": "{/prefix}accounting/gl/create?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,
@ -61,11 +61,11 @@
}, },
{ {
"id": 1002605001, "id": 1002605001,
"pid": "/backend", "pid": "/",
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "BatchPostings", "name": "BatchPostings",
"uri": "{/lang}/backend/accounting/stack/list?{?}", "uri": "{/prefix}accounting/stack/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 10, "order": 10,
@ -75,11 +75,11 @@
"children": [ "children": [
{ {
"id": 1002605101, "id": 1002605101,
"pid": "/backend", "pid": "/",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "List", "name": "List",
"uri": "{/lang}/backend/accounting/stack/list?{?}", "uri": "{/prefix}accounting/stack/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,
@ -90,11 +90,11 @@
}, },
{ {
"id": 1002605201, "id": 1002605201,
"pid": "/backend", "pid": "/",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Archive", "name": "Archive",
"uri": "{/lang}/backend/accounting/stack/archive/list?{?}", "uri": "{/prefix}accounting/stack/archive/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 10, "order": 10,
@ -105,11 +105,11 @@
}, },
{ {
"id": 1002605301, "id": 1002605301,
"pid": "/backend", "pid": "/",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Predefined", "name": "Predefined",
"uri": "{/lang}/backend/accounting/stack/predefined/list?{?}", "uri": "{/prefix}accounting/stack/predefined/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 10, "order": 10,
@ -120,11 +120,11 @@
}, },
{ {
"id": 1002605401, "id": 1002605401,
"pid": "/backend", "pid": "/",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Create", "name": "Create",
"uri": "{/lang}/backend/accounting/stack/create?{?}", "uri": "{/prefix}accounting/stack/create?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 15, "order": 15,
@ -137,11 +137,11 @@
}, },
{ {
"id": 1002606001, "id": 1002606001,
"pid": "/backend", "pid": "/",
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Entries", "name": "Entries",
"uri": "{/lang}/backend/accounting/entries/dashboard?{?}", "uri": "{/prefix}accounting/entries/dashboard?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,

View File

@ -6,7 +6,7 @@ use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb; use phpOMS\Router\RouteVerb;
return [ return [
'^.*/backend/accounting/personal/entries.*$' => [ '^.*/accounting/personal/entries.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewPersonalEntries', 'dest' => '\Modules\Accounting\Controller\BackendController:viewPersonalEntries',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -17,7 +17,7 @@ return [
], ],
], ],
], ],
'^.*/backend/accounting/impersonal/entries.*$' => [ '^.*/accounting/impersonal/entries.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewImpersonalEntries', 'dest' => '\Modules\Accounting\Controller\BackendController:viewImpersonalEntries',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -28,7 +28,7 @@ return [
], ],
], ],
], ],
'^.*/backend/accounting/entries.*$' => [ '^.*/accounting/entries.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewEntries', 'dest' => '\Modules\Accounting\Controller\BackendController:viewEntries',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -39,7 +39,7 @@ return [
], ],
], ],
], ],
'^.*/backend/accounting/impersonal/journal/list.*$' => [ '^.*/accounting/impersonal/journal/list.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewJournalList', 'dest' => '\Modules\Accounting\Controller\BackendController:viewJournalList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -50,7 +50,7 @@ return [
], ],
], ],
], ],
'^.*/backend/accounting/stack/list.*$' => [ '^.*/accounting/stack/list.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewStackList', 'dest' => '\Modules\Accounting\Controller\BackendController:viewStackList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -61,7 +61,7 @@ return [
], ],
], ],
], ],
'^.*/backend/accounting/stack/entries.*$' => [ '^.*/accounting/stack/entries.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewStackEntries', 'dest' => '\Modules\Accounting\Controller\BackendController:viewStackEntries',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -72,7 +72,7 @@ return [
], ],
], ],
], ],
'^.*/backend/accounting/stack/archive/list.*$' => [ '^.*/accounting/stack/archive/list.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewStackArchiveList', 'dest' => '\Modules\Accounting\Controller\BackendController:viewStackArchiveList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -83,7 +83,7 @@ return [
], ],
], ],
], ],
'^.*/backend/accounting/stack/create.*$' => [ '^.*/accounting/stack/create.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewStackCreate', 'dest' => '\Modules\Accounting\Controller\BackendController:viewStackCreate',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -94,7 +94,7 @@ return [
], ],
], ],
], ],
'^.*/backend/accounting/stack/predefined/list.*$' => [ '^.*/accounting/stack/predefined/list.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewStackPredefinedList', 'dest' => '\Modules\Accounting\Controller\BackendController:viewStackPredefinedList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -105,7 +105,7 @@ return [
], ],
], ],
], ],
'^.*/backend/accounting/gl/list.*$' => [ '^.*/accounting/gl/list.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewGLList', 'dest' => '\Modules\Accounting\Controller\BackendController:viewGLList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -116,7 +116,7 @@ return [
], ],
], ],
], ],
'^.*/backend/accounting/gl/create.*$' => [ '^.*/accounting/gl/create.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewGLCreate', 'dest' => '\Modules\Accounting\Controller\BackendController:viewGLCreate',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -127,7 +127,7 @@ return [
], ],
], ],
], ],
'^.*/backend/accounting/gl/profile.*$' => [ '^.*/accounting/gl/profile.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewGLProfile', 'dest' => '\Modules\Accounting\Controller\BackendController:viewGLProfile',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -138,7 +138,7 @@ return [
], ],
], ],
], ],
'^.*/api/accounting/dun/print.*$' => [ '^.*/accounting/dun/print.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterProfile', 'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterProfile',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -149,7 +149,7 @@ return [
], ],
], ],
], ],
'^.*/api/accounting/statement/print.*$' => [ '^.*/accounting/statement/print.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterProfile', 'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterProfile',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -160,7 +160,7 @@ return [
], ],
], ],
], ],
'^.*/api/accounting/balances/print.*$' => [ '^.*/accounting/balances/print.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterProfile', 'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterProfile',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -171,7 +171,7 @@ return [
], ],
], ],
], ],
'^.*/api/accounting/accountform/print.*$' => [ '^.*/accounting/accountform/print.*$' => [
[ [
'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterProfile', 'dest' => '\Modules\Accounting\Controller\BackendController:viewCostCenterProfile',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,

View File

@ -36,7 +36,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/admin/group/settings?{?}&id=' . $value->getId()); ?> $url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&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

@ -34,7 +34,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/admin/group/settings?{?}&id=' . $value->getId()); ?> $url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&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

@ -36,7 +36,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/admin/group/settings?{?}&id=' . $value->getId()); ?> $url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&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

@ -38,7 +38,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/admin/group/settings?{?}&id=' . $value->getId()); ?> $url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&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

@ -37,7 +37,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/admin/group/settings?{?}&id=' . $value->getId()); ?> $url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&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/accounting" "/accounting"
], ],
"type": 4, "type": 4,
"for": "Content", "for": "Content",
@ -34,7 +34,7 @@
}, },
{ {
"pid": [ "pid": [
"/backend" "/"
], ],
"type": 5, "type": 5,
"from": "Accounting", "from": "Accounting",