mirror of
https://github.com/Karaka-Management/oms-Production.git
synced 2026-01-27 04:38:40 +00:00
Make app,localization in url optional+tld+subdomain
This commit is contained in:
parent
4f0c8242ce
commit
a24de29172
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user