Welcome Guest, Not a member yet? Register   Sign In
Problem autoloading helpers..
#2

[eluser]jedd[/eluser]
Hi teamcoder and welcome to the CI forums.

Try moving your form loader into the autoload.php (application/config/) file, or at the very least load it in the same method of your controller that then calls the view.

That is, move this line:
Code:
$this->load->helper('form');
- from out of your form() method and into your index() method.

I'd suggest that your code will probably morph a fair bit, so for the moment stick it in autoload. You can selectively load things like this if / when performance becomes relevant.


Messages In This Thread
Problem autoloading helpers.. - by El Forum - 11-15-2009, 11:59 AM
Problem autoloading helpers.. - by El Forum - 11-15-2009, 12:14 PM
Problem autoloading helpers.. - by El Forum - 11-15-2009, 01:20 PM
Problem autoloading helpers.. - by El Forum - 11-15-2009, 05:10 PM
Problem autoloading helpers.. - by El Forum - 11-15-2009, 06:31 PM
Problem autoloading helpers.. - by El Forum - 11-15-2009, 07:25 PM
Problem autoloading helpers.. - by El Forum - 11-15-2009, 10:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB