You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, before using AdminLTE, I generated PDF files with CakePDF, after installing AdminLTE, I can not render the pdf.
I discovered the problem but I do not know how to solve it.
In AppController.php
public function beforeRender(Event $event){ $this->viewBuilder()->setTheme('AdminLTE'); // Overwrite AppView class $this->viewBuilder()->setClassName('AdminLTE.AdminLTE'); }
Removing this line $this->viewBuilder()->setClassName('AdminLTE.AdminLTE'); , the pdf works, but AdminLTE has the default menus again.
The text was updated successfully, but these errors were encountered:
For a additional information, you don't need use $this->viewBuilder()->setClassName('AdminLTE.AdminLTE');. You will use this class when you want overwrite pattern files of theme.
Hello, before using AdminLTE, I generated PDF files with CakePDF, after installing AdminLTE, I can not render the pdf.
I discovered the problem but I do not know how to solve it.
In AppController.php
public function beforeRender(Event $event){ $this->viewBuilder()->setTheme('AdminLTE'); // Overwrite AppView class $this->viewBuilder()->setClassName('AdminLTE.AdminLTE'); }
Removing this line $this->viewBuilder()->setClassName('AdminLTE.AdminLTE'); , the pdf works, but AdminLTE has the default menus again.
The text was updated successfully, but these errors were encountered: