mirror of
https://github.com/Karaka-Management/oms-Dashboard.git
synced 2026-02-16 18:38:41 +00:00
Fixing remaining bugs for route-restructure
This commit is contained in:
parent
4f33b6e6da
commit
01a1cadf5b
|
|
@ -14,7 +14,9 @@
|
||||||
* @link http://orange-management.com
|
* @link http://orange-management.com
|
||||||
*/
|
*/
|
||||||
namespace Modules\Dashboard\Admin;
|
namespace Modules\Dashboard\Admin;
|
||||||
|
|
||||||
use phpOMS\DataStorage\Database\Pool;
|
use phpOMS\DataStorage\Database\Pool;
|
||||||
|
use phpOMS\Module\InfoManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dashboard install class.
|
* Dashboard install class.
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use phpOMS\Router\RouteVerb;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'^.*/backend/dashboard/list.*$' => [
|
'^.*/backend/dashboard/list.*$' => [
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
*/
|
*/
|
||||||
public function viewDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
|
public function viewDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable
|
||||||
{
|
{
|
||||||
$view = new View($this->app, $request, $response);
|
$view = new View($this->app, $request, $response);
|
||||||
$view->setTemplate('/Modules/Dashboard/Theme/Backend/dashboard');
|
$view->setTemplate('/Modules/Dashboard/Theme/Backend/dashboard');
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link http://orange-management.com
|
* @link http://orange-management.com
|
||||||
*/
|
*/
|
||||||
$MODLANG['Navigation'] = [
|
return ['Navigation' => [
|
||||||
'Dashboard' => 'Dashboard',
|
'Dashboard' => 'Dashboard',
|
||||||
'Home' => 'Home',
|
'Home' => 'Home',
|
||||||
'Logout' => 'Logout',
|
'Logout' => 'Logout',
|
||||||
];
|
]];
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link http://orange-management.com
|
* @link http://orange-management.com
|
||||||
*/
|
*/
|
||||||
$MODLANG['Navigation'] = [
|
return ['Navigation' => [
|
||||||
'Dashboard' => 'Dashboard',
|
'Dashboard' => 'Dashboard',
|
||||||
'Home' => 'Home',
|
'Home' => 'Home',
|
||||||
'Logout' => 'Logout',
|
'Logout' => 'Logout',
|
||||||
];
|
]];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user