Welcome Guest, Not a member yet? Register   Sign In
send data + load->view();
#2

[eluser]ElShotte[/eluser]
$data = array(
'title' => 'Website',
'style' => array('style_css' => 'style_001.css',),
'page' => 'help',
);

$this->load->view('layouts/layout_top', $data);

//Inside the actual view file, to display your title amongst your HTML code just <?=$title?>. Each Key name in the array is your variable name.

//To display or get your URL you can use one of the following.

echo base_url();

//If you want to make a link to let's say your "Help" controller, use the following

site_url("help")

//base_url() is self explanatory, meanwhile, you pass a value to site_url and it generates link for you.


Messages In This Thread
send data + load->view(); - by El Forum - 09-18-2009, 08:31 AM
send data + load->view(); - by El Forum - 09-18-2009, 08:42 AM
send data + load->view(); - by El Forum - 09-18-2009, 09:02 AM
send data + load->view(); - by El Forum - 09-23-2009, 11:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB