Welcome Guest, Not a member yet? Register   Sign In
passing variables from view to view
#1

[eluser]kmunky[/eluser]
considering that i have:

views/page.php
Code:
$this->load->view("header");
$this->load->view($main_page);//variable passed from controller
$this->load->view("footer");

controllers/show.php
Code:
$this->load->view("page",$data);//$data contains the main_page title

and in my header view i have to pass a variable containing some categories(the site menu) to be listed. What is the correct way to accomplish this? thanks


Messages In This Thread
passing variables from view to view - by El Forum - 03-28-2010, 11:00 AM
passing variables from view to view - by El Forum - 03-28-2010, 11:27 AM
passing variables from view to view - by El Forum - 03-28-2010, 04:46 PM
passing variables from view to view - by El Forum - 03-28-2010, 11:09 PM
passing variables from view to view - by El Forum - 03-29-2010, 05:26 AM
passing variables from view to view - by El Forum - 03-29-2010, 06:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB