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

[eluser]dudeami0[/eluser]
The way wiredesignz is talking about is for accessing it inside the view, and calling the helper function from there like:

Code:
<html>
<head>
...
</head>
<body>
<?php echo my_helper_function($this->_ci_cached_vars); ?>
</body>
</html>

The way your going about could be done (With $CI->load->_ci_cached_vars):
Code:
$CI =& get_instances();
$foo = $CI->load->_ci_cached_vars;
echo $foo['edit']['name'] // Does not produce 'John'.

Either way should work Smile

Edit: Didn't notice your reply, I'll just leave this up here Smile


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