Skip to content

Commit

Permalink
Merge pull request #177 from Arno2005/hotfix/demo-module-layout-fix
Browse files Browse the repository at this point in the history
Fixing layout issue on Module library
  • Loading branch information
armanist authored Nov 5, 2024
2 parents c801623 + 801caf5 commit 3d7e331
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
class MainController extends QtController
{
/**
* Main layout
*/
const LAYOUT = \'layouts/main\';
/**
* Works before an action
* @param ViewFactory $view
Expand All @@ -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\'),
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class AuthController extends BaseController
{
/**
* Auth layout
* Main layout
*/
const LAYOUT = \'layouts/main\';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PageController extends BaseController
{
/**
* Auth layout
* Main layout
*/
const LAYOUT = \'layouts/main\';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class PostController extends BaseController
const CURRENT_PAGE = 1;
/**
* Auth layout
* Main layout
*/
const LAYOUT = \'layouts/main\';
Expand Down

0 comments on commit 3d7e331

Please sign in to comment.