07-02-2007, 04:07 AM
[eluser]zdknudsen[/eluser]
I have two code snippets that should be placed under multiple controllers.
First I have the user-validation/user-data-retrieval code that should be put in pretty much every controller (except ajax and a few other controllers), and then I have some code for fetching data about a particular game which will should be included in about half of my pages.
How would I do this? Libraries? Helpers? Plugins? Models even?
Cheers,
Zawk
I have two code snippets that should be placed under multiple controllers.
First I have the user-validation/user-data-retrieval code that should be put in pretty much every controller (except ajax and a few other controllers), and then I have some code for fetching data about a particular game which will should be included in about half of my pages.
How would I do this? Libraries? Helpers? Plugins? Models even?
Cheers,
Zawk