maiconpinto / cakephp-adminlte-theme

CakePHP AdminLTE Theme
http://maiconpinto.github.io/cakephp-adminlte-theme/
MIT License
172 stars 111 forks source link

I can't generate Pdf #78

Open Villo21 opened 5 years ago

Villo21 commented 5 years ago

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.

maiconpinto commented 5 years ago

Hi @Villo21

Do you have this problem yet?

I'm verifying the issues to new release. Let me know if I can help you.

maiconpinto commented 5 years ago

Hi @Villo21

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.

More information in this link.