Welcome Guest, Not a member yet? Register   Sign In
how to have a varibale in the header
#2

[eluser]pistolPete[/eluser]
Code:
$this->load->vars($array)
User guide:
Quote:This function takes an associative array as input and generates variables using the PHP extract function. This function produces the same result as using the second parameter of the $this->load->view() function above. The reason you might want to use this function independently is if you would like to set some global variables in the constructor of your controller and have them become available in any view file loaded from any function. You can have multiple calls to this function. The data get cached and merged into one array for conversion to variables.


Messages In This Thread
how to have a varibale in the header - by El Forum - 03-13-2009, 03:55 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 04:01 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 04:28 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 06:27 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 06:42 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 06:53 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 08:50 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 08:51 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 09:33 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 09:40 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 09:42 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 09:47 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 09:48 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 09:55 AM
how to have a varibale in the header - by El Forum - 03-15-2009, 04:22 PM
how to have a varibale in the header - by El Forum - 03-15-2009, 07:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB