-
Notifications
You must be signed in to change notification settings - Fork 52
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: