Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Multi view in one
givx
March 2013
Why i use this
$a = View::forge('user/synthese/index')->render();
Debug::dump($a);
$b = View::forge('user/synthese/search', $data)->render();
$this->template->content = $a.$b;
Always return html code with "" don't render my html code;
Harro
March 2013
FuelPHP uses encoding on output as a security feature. What you do works, but it will print the HTML instead of interpreting it, and this is because it's encoded.
Use this instead:
$this->template->set_safe('content', $a.$b);
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
March 2013