Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Multi view in one
  • 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; 
  • 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);

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion