Welcome Guest, Not a member yet? Register   Sign In
Helper file
#1

[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?
#2

[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');
#3

[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.




Theme © iAndrew 2016 - Forum software by © MyBB