Welcome Guest, Not a member yet? Register   Sign In
Helpers access $this->load->vars($data) ? [take-2]
#4

[eluser]stormbytes[/eluser]
[quote author="wiredesignz" date="1289112749"]
Code:
$this->_ci_cached_vars; //array used by $this->load->vars() referenced from within a view.
[/quote]

I've tried the obvious but it seems I'm missing something..

Controller:
Code:
$edit = array('name' =>'john', 'id'=>'5');
$data['edit'] = $edit;
$this->load->vars($data);

Helper Function:
Code:
$CI =& get_instances();
$foo = $CI->_ci_cached_vars;
echo $foo['edit']['name'] // Does not produce 'John'.


Messages In This Thread
Helpers access $this->load->vars($data) ? [take-2] - by El Forum - 11-06-2010, 04:56 PM
Helpers access $this->load->vars($data) ? [take-2] - by El Forum - 11-06-2010, 05:04 PM
Helpers access $this->load->vars($data) ? [take-2] - by El Forum - 11-06-2010, 06:56 PM
Helpers access $this->load->vars($data) ? [take-2] - by El Forum - 11-06-2010, 07:03 PM
Helpers access $this->load->vars($data) ? [take-2] - by El Forum - 11-06-2010, 07:09 PM
Helpers access $this->load->vars($data) ? [take-2] - by El Forum - 11-06-2010, 07:10 PM
Helpers access $this->load->vars($data) ? [take-2] - by El Forum - 11-06-2010, 07:34 PM
Helpers access $this->load->vars($data) ? [take-2] - by El Forum - 11-06-2010, 07:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB