I am creating a new library to codeignighter, seem i cannot use/load helper i've created |
[eluser]netameta1[/eluser]
basically i have a helper file with several function. I auto load the helper in the config file so theoretically reloading it is not required. However when i try to use the function that i created(from this helper) within a new library that i am working on it will through this error: Code: "Parse error: syntax error, unexpected '(', expecting ',' or ';' in /home/techwork/public_html/giverhub/application/libraries/Udetails.php on line 7" Whenever i use that function anywhere else(module,controller,views) it works fine. I then read and thought maybe i should try loading the helper after following instructions at: http://ellislab.com/codeigniter/user-gui...aries.html and try referencing and loading but that also through an error: Code: "Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/techwork/public_html/giverhub/application/libraries/Udetails.php on line 5" Here is the library: Code: class Udetails{ Here is the function within the helper: Code: if ( ! function_exists('is_member')) Thanks in advanced. |
Messages In This Thread |
I am creating a new library to codeignighter, seem i cannot use/load helper i've created - by El Forum - 10-19-2012, 09:07 AM
I am creating a new library to codeignighter, seem i cannot use/load helper i've created - by El Forum - 10-19-2012, 09:37 AM
I am creating a new library to codeignighter, seem i cannot use/load helper i've created - by El Forum - 10-19-2012, 09:49 AM
I am creating a new library to codeignighter, seem i cannot use/load helper i've created - by El Forum - 10-19-2012, 11:25 AM
|