Welcome Guest, Not a member yet? Register   Sign In
Is it correct to create a library in this situation?
#1

[eluser]Random dude[/eluser]
I have some functions I need to use across multiple controllers. The functions need to access a Model to data from the database.

Is it correct to create a new library and then load the library in each of the controllers?

Through experimentation I found you can't load Models in helpers ( I originally created a new helper)
#2

[eluser]Ben Edmunds[/eluser]
Yes that would be a good use for a library, as long as the functions are related.




Theme © iAndrew 2016 - Forum software by © MyBB