Welcome Guest, Not a member yet? Register   Sign In
trouble with "extending" helper file
#1

[eluser]carom[/eluser]
I'm trying to override a specific function in the assets helper file. I have the original helper loading fine via autoload. However, when I add the file MY_assets_helper.php to the helpers directory, I get the following error: Unable to load the requested file: helpers/assets_helper.php

My_assets_helper.php contains only the function I want to override. My config file is setting "MY_" as my subclass_prefix.

I'm running CI version 2.1.1



#2

[eluser]InsiteFX[/eluser]
It's for overriding CodeIgniter .system/helpers not helpers created by you or someone else.

Just modify the helper to do what you want.
#3

[eluser]carom[/eluser]
That explains it. Thanks much!




Theme © iAndrew 2016 - Forum software by © MyBB