Welcome Guest, Not a member yet? Register   Sign In
passing data to the view
#5

[eluser]InsiteFX[/eluser]
Try this:

Code:
class Dashboard extends Controller {

var $_ci;

function Dashboard()
{
parent::Controller();

$this->_ci =& get_instance();
}

function index()
{
$data['controller_name'] = $this->_ci->router->fetch_class();

$this->load->vars($data);

$this->load->view('header');
$this->load->view('header_bg');
$this->load->view('navigation_bg');
$this->load->view('main');
$this->load->view('future');
$this->load->view('footer_bg');
}
}

InsiteFX


Messages In This Thread
passing data to the view - by El Forum - 01-06-2011, 09:20 PM
passing data to the view - by El Forum - 01-06-2011, 09:25 PM
passing data to the view - by El Forum - 01-06-2011, 11:24 PM
passing data to the view - by El Forum - 01-07-2011, 12:44 AM
passing data to the view - by El Forum - 01-07-2011, 01:07 AM
passing data to the view - by El Forum - 01-07-2011, 05:52 AM
passing data to the view - by El Forum - 01-07-2011, 08:46 AM
passing data to the view - by El Forum - 01-07-2011, 08:47 AM
passing data to the view - by El Forum - 01-07-2011, 09:01 AM
passing data to the view - by El Forum - 01-07-2011, 09:06 AM
passing data to the view - by El Forum - 01-07-2011, 09:11 AM
passing data to the view - by El Forum - 01-07-2011, 04:41 PM
passing data to the view - by El Forum - 01-07-2011, 05:18 PM
passing data to the view - by El Forum - 01-07-2011, 05:59 PM
passing data to the view - by El Forum - 01-07-2011, 06:57 PM
passing data to the view - by El Forum - 01-07-2011, 07:38 PM
passing data to the view - by El Forum - 01-07-2011, 07:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB