Welcome Guest, Not a member yet? Register   Sign In
Using a model in a plugin
#1

[eluser]TheServant[/eluser]
I apologise if this has already been discussed, but I cannot find it.

My structure is this:
I have one Controller which will take a page request, run a corresponding plugin (a unique on for each page) and then serve the view returned by the plugin.
I used a plugin instead of a library because a library should be stand alone and generally a collection of functions rather than one.

However, I have realised that the plugin cannot use models loaded from the controller? I also cannot load a model in the plugin? Am I just doing something wrong or are plugins not meant to be used this way?


Messages In This Thread
Using a model in a plugin - by El Forum - 04-14-2010, 03:17 AM
Using a model in a plugin - by El Forum - 04-14-2010, 05:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB