• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multible views, one Template - wont work ? :/

[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.

$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

anyone got an idea ?
so far^^lemontree

p.s. sry for my bad english Smile

I suggest you read the user guide =>"Returning views as data" in the views part

You only need to add TRUE.
$template['head'] = $this->load->view('main_head','',true);

[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
$template['head'] = $this->load->view('main_head', '', true);

thx so far ^^

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.