Welcome Guest, Not a member yet? Register   Sign In
Multiple templates, loading default variables for main template?
#3

[eluser]Unknown[/eluser]
Hi Jatinder...i was working like you with your '$inner method'...i was read it before in other post and it works well...but, imagine that you have this
Code:
$data_principal['base']=$this->config->item('base_url');  //just some paths in my config
...more variables...

$data_principal['base']=$this->config->item('base_url')   // the same paths
...more variables...

$data_principal['content']=$this->load->view('content',$data_paths,TRUE);   //here
$this->load->view('index',$data_principal);

how i can send the content of $data_principal to 'content' view and 'index' view at the same time with a single array??

thanks a lot


Messages In This Thread
Multiple templates, loading default variables for main template? - by El Forum - 03-07-2010, 02:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB