Welcome Guest, Not a member yet? Register   Sign In
How to have some data always available at views
#4

[eluser]cahva[/eluser]
Better to use $this->load->vars()
Code:
$array = array(
    'somevar' => 'something',
    'someothervar' => 'something else'
);

$this->load->vars($array)

// After that you can use $somevar and $someothervar in the views


Messages In This Thread
How to have some data always available at views - by El Forum - 02-11-2010, 12:36 PM
How to have some data always available at views - by El Forum - 02-11-2010, 12:51 PM
How to have some data always available at views - by El Forum - 02-11-2010, 01:05 PM
How to have some data always available at views - by El Forum - 02-11-2010, 01:17 PM
How to have some data always available at views - by El Forum - 02-11-2010, 01:19 PM
How to have some data always available at views - by El Forum - 02-11-2010, 02:09 PM
How to have some data always available at views - by El Forum - 02-11-2010, 02:33 PM
How to have some data always available at views - by El Forum - 02-11-2010, 02:50 PM
How to have some data always available at views - by El Forum - 02-11-2010, 02:54 PM
How to have some data always available at views - by El Forum - 02-11-2010, 03:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB