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

View render output empty #32

Open
Creeall opened this issue Jan 4, 2019 · 0 comments
Open

View render output empty #32

Creeall opened this issue Jan 4, 2019 · 0 comments

Comments

@Creeall
Copy link

Creeall commented Jan 4, 2019

The issue comes when invoking view renderWithLayout several times on the same view files.
view->render ob_start + require_once make it empty for the next calls of renderWithLayout supposedly because require_once avoid reloading the files previously loaded in memory. Ob_start don't catch any output, and the final output is empty.

It's mainly used when using renderWithLayout for mail templates.
So you may consider changing require_once by simple require, or include.
Unless you find a better fix.

Cheers.

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

1 participant