Fixing remaining bugs for route-restructure

This commit is contained in:
Dennis Eichhorn 2016-04-09 10:42:22 +02:00
parent 4f33b6e6da
commit 01a1cadf5b
5 changed files with 9 additions and 5 deletions

View File

@ -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.

View File

@ -1,5 +1,7 @@
<?php <?php
use phpOMS\Router\RouteVerb;
return [ return [
'^.*/backend/dashboard/list.*$' => [ '^.*/backend/dashboard/list.*$' => [
[ [

View File

@ -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');

View File

@ -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',
]; ]];

View File

@ -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',
]; ]];