Welcome Guest, Not a member yet? Register   Sign In
[solved]$this->load->vars($array) question
#1

[eluser]quasiperfect[/eluser]
hi

The variables loaded using $this->load->vars($array) are usable inside the controller ?
If so, how ?

I tried like this but no luck inside the view is ok but not in the controller
I'm using the latest reactor from bitbucket
Code:
class Welcome extends MY_Controller {
    function __construct()
    {
        parent::__construct();
        $myvars['b'] = 'test';
        $this->load->vars($myvars);
    }

    function index()
    {
        echo $b;
    }
}


Messages In This Thread
[solved]$this->load->vars($array) question - by El Forum - 02-12-2011, 05:40 AM
[solved]$this->load->vars($array) question - by El Forum - 02-12-2011, 06:38 AM
[solved]$this->load->vars($array) question - by El Forum - 02-12-2011, 06:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB