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

I can't generate Pdf #78

Open
Villo21 opened this issue Mar 13, 2019 · 2 comments
Open

I can't generate Pdf #78

Villo21 opened this issue Mar 13, 2019 · 2 comments
Assignees

Comments

@Villo21
Copy link

Villo21 commented Mar 13, 2019

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 maiconpinto self-assigned this Mar 14, 2019
@maiconpinto
Copy link
Owner

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants