Helper file - 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: Helper file (/showthread.php?tid=7060) |
Helper file - El Forum - 03-22-2008 [eluser]SeanJA[/eluser] I think we may have done this the wrong way. A group of us developed something using code igniter and it went quite well for the most part. It works just fine on all of our local servers. However, when I tried to put it up on my domain for testing in the 'real' world I get this as an error: Unable to load the requested file: helpers/my_error_helper.php (oh the irony) It is strange that this is not the file that it is supposed to be calling, the call is: An Error Was Encountered $this->load->helper('MY_error_helper'); any ideas what is going on? Helper file - El Forum - 03-23-2008 [eluser]xwero[/eluser] I think the problem is the use of the MY_ prefix. From CI 1.6 you are able to extend the helpers with the same prefix you use to extend core libraries. Try to load the helper with the MY_ removed from the filename Code: $this->load->helper('error'); Helper file - El Forum - 03-23-2008 [eluser]SeanJA[/eluser] Thanks, I will try that. For now we have just commented out the lines and made it import the helpers for every page. Not the best way to do it I know, but it is fine for testing the rest of the site for now. |