[eluser]GregX999[/eluser]
I've got a library with three functions in it (lets say A, B and C)
Function A needs to be called every time a page is requested (aka - for every function in every controller that produces output)
For functions B and C, one of them always needs to be called for every page - usually B - so B should be default and C is used instead only sometimes.
How can I best do this without having to manually call these library functions in every controller function?
In RoR I can use the application controller to automatically do what I need to do with function A. But I don't know how to get an application class to load automatically if I have my controllers extend it instead of extending Controller.
And for functions B and C, in RoR I can use "before_filter" in my controllers to assign either B or C to each function all on just 2 lines.
What can I do with CI?
Thanks,
Greg