Link to home
Start Free TrialLog in
Avatar of CrisThompsonUK
CrisThompsonUKFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Codeignitor custom functions

Hi,

I'm new to codeignitor, and loving it so far...

I'm writing some PHP functions that I need available across my pages, can someone please tell me how to set it up?

I currently have them as a class in  the library, but when I call them I get
"Fatal error: Call to undefined function call_web_api()"

Thanks - first week on a need job, and need to impress!!!  

Cris.
Avatar of CrisThompsonUK
CrisThompsonUK
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

OK, panic over.

I got it working as a helper rather than library file.

Points still available if someone can comment/ guide me if this is correct.

Cris.
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks as ever ray.
Thanks for the points and best of luck with the new gig! ~Ray
this one's a perm, so I need to brush up on everything!! - Six months probation!