Welcome Guest, Not a member yet? Register   Sign In
HMVC: extend a library or create methods avalaible everywhere?
#1

[eluser]Unknown[/eluser]
I've started using HMVC in Codeigniter with Modular Extension and i want to create a set of methods avalaible in the whole application.

For example i've this three methods:

a method to retrieve te app name
a method for getting the right view folder depending on the user agent
a method to load assets
What's the best way to do this:

I'm using a model inside a module which is then requested from all other modules
I may extend or create a library/helper
now i'm using the first solution but I have come to doubt that it can slow down the application.




Theme © iAndrew 2016 - Forum software by © MyBB