![]() |
How can helpers access $this->load->vars($data) ? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How can helpers access $this->load->vars($data) ? (/showthread.php?tid=35649) |
How can helpers access $this->load->vars($data) ? - El Forum - 11-06-2010 [eluser]stormbytes[/eluser] I'm writing some helper functions which are called from within a view, and I'm wondering if there's a way to write the helper function so that it can access variables loaded (from within the originating controller) through $this->load->vars($data). Thanks! How can helpers access $this->load->vars($data) ? - El Forum - 11-06-2010 [eluser]tonanbarbarian[/eluser] why not just pass any necessary variables to the helper when you call it in the view How can helpers access $this->load->vars($data) ? - El Forum - 11-06-2010 [eluser]stormbytes[/eluser] Common sense clearly fails me tonight. Thanks! |