Welcome Guest, Not a member yet? Register   Sign In
Application structure?
#3

[eluser]cahva[/eluser]
Well hes not actually using the controllers in model, just reading the filelist from controllers dir. So I dont think hes doing anything bad here. As I recall, models can be used for fileaccess also besides database.

But one thing is for sure, you should never call model inside the view! Call that model from controller and pass it to the view.

If you need that modules list in every controller(to be used in your layout), use MY_Controller technique to set it up so you wont have to call that model in every controller. Just search for MY_Controller and you should see how you can do that.


Messages In This Thread
Application structure? - by El Forum - 04-18-2010, 05:38 AM
Application structure? - by El Forum - 04-18-2010, 12:46 PM
Application structure? - by El Forum - 04-18-2010, 02:16 PM
Application structure? - by El Forum - 04-18-2010, 04:13 PM
Application structure? - by El Forum - 04-18-2010, 04:20 PM
Application structure? - by El Forum - 04-18-2010, 04:25 PM
Application structure? - by El Forum - 04-18-2010, 04:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB