Multiple Views ?!?! |
[eluser]Unknown[/eluser]
Hello World, Sorry my bad english... Why CI don't work with multiples views in the controller ?? Only load the last view... How do solution to this limitation ?? Wait Answer... Thanks...
[eluser]gunter[/eluser]
user guide: loader class Code: $this->load->view('file_name', $data, true/false) that means, you have to set the last parameter to TRUE! then you can echo multiple views.. echo $this->load->view('myfile', '', true); echo $this->load->view('myfile2', '', true);
[eluser]kylehase[/eluser]
Enabling the third parameter pulls the strings from the buffer. Will this affect performance? Would it be better to simply append new output data to the buffer then have some function to print the buffer? From Loader.php Code: ob_start(); Notice the section : Code: if ($return === TRUE) |
Welcome Guest, Not a member yet? Register Sign In |