Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing layout issue on Module library #177

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading