02-12-2011, 05:40 AM
[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
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;
}
}