diff --git a/src/Libraries/Module/Templates/Default/Web/Controllers/MainController.php b/src/Libraries/Module/Templates/Default/Web/Controllers/MainController.php index 9441eae..9cf2e5d 100644 --- a/src/Libraries/Module/Templates/Default/Web/Controllers/MainController.php +++ b/src/Libraries/Module/Templates/Default/Web/Controllers/MainController.php @@ -11,6 +11,12 @@ class MainController extends QtController { + + /** + * Main layout + */ + const LAYOUT = \'layouts/main\'; + /** * Works before an action * @param ViewFactory $view @@ -32,9 +38,7 @@ public function __before(ViewFactory $view) * @param ViewFactory $view */ public function index(Response $response, ViewFactory $view) - { - $view->setLayout(\'layouts' . DS . 'main\'); - + { $view->setParams([ \'title\' => config()->get(\'app_name\'), ]); diff --git a/src/Libraries/Module/Templates/Demo/Web/Controllers/AuthController.php b/src/Libraries/Module/Templates/Demo/Web/Controllers/AuthController.php index eeb9031..ca10f02 100644 --- a/src/Libraries/Module/Templates/Demo/Web/Controllers/AuthController.php +++ b/src/Libraries/Module/Templates/Demo/Web/Controllers/AuthController.php @@ -29,7 +29,7 @@ class AuthController extends BaseController { /** - * Auth layout + * Main layout */ const LAYOUT = \'layouts/main\'; diff --git a/src/Libraries/Module/Templates/Demo/Web/Controllers/PageController.php b/src/Libraries/Module/Templates/Demo/Web/Controllers/PageController.php index 8722752..c1816df 100644 --- a/src/Libraries/Module/Templates/Demo/Web/Controllers/PageController.php +++ b/src/Libraries/Module/Templates/Demo/Web/Controllers/PageController.php @@ -27,7 +27,7 @@ class PageController extends BaseController { /** - * Auth layout + * Main layout */ const LAYOUT = \'layouts/main\'; diff --git a/src/Libraries/Module/Templates/Demo/Web/Controllers/PostController.php b/src/Libraries/Module/Templates/Demo/Web/Controllers/PostController.php index cd82321..efbe845 100644 --- a/src/Libraries/Module/Templates/Demo/Web/Controllers/PostController.php +++ b/src/Libraries/Module/Templates/Demo/Web/Controllers/PostController.php @@ -41,7 +41,7 @@ class PostController extends BaseController const CURRENT_PAGE = 1; /** - * Auth layout + * Main layout */ const LAYOUT = \'layouts/main\';