![]() |
Multible views, one Template - wont work ? :/ - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Multible views, one Template - wont work ? :/ (/showthread.php?tid=24221) |
Multible views, one Template - wont work ? :/ - El Forum - 11-03-2009 [eluser]Thomas Fuston[/eluser] Aloha ! i know maybe this is just a annoying "beginner question" but, i try to get 1 main_template and within this template some others will be loaded. example: Code: $template['head'] = $this->load->view('main_head'); isn't this possible to work ? It seems codeigniter not loading the head view, into "$template" , it just load it, like a normal view call. so it loading it like i would write Code: $this->load->view('main_head'); anyone got an idea ? so far^^lemontree p.s. sry for my bad english ![]() Multible views, one Template - wont work ? :/ - El Forum - 11-03-2009 [eluser]rogierb[/eluser] I suggest you read the user guide =>"Returning views as data" in the views part You only need to add TRUE. Code: $template['head'] = $this->load->view('main_head','',true); Multible views, one Template - wont work ? :/ - El Forum - 11-03-2009 [eluser]Thomas Fuston[/eluser] Ok it worked, ahrg, sry for just a question, which could be answered by myself. if i reading right.. finaly had to write Code: $template['head'] = $this->load->view('main_head', '', true); thx so far ^^ |