MVC approach in PHP Development
View Single Post
12-10-2009, 08:21 PM
Join Date: Sep 2007
Location: Sweden, Stockholm
Originally Posted by
Now why would you need access to the DB via the controller?
Now where did I put my coffee?
You should probably have taken your coffee before replying xD
I didn't say you should access the database via the controller. I just said you CAN, and that the use of models isn't limited to database handling.
I "proved" this by saying that otherwise you wouldn't be able to access the database via the controller. Because if models would be limited to database handling, then you should be forced to use models for the database handling, and controllers wouldn't allow you to access the database. But controllers do allow this thus models aren't limited to database handling.
View Public Profile
Send a private message to Tanax
Visit Tanax's homepage!
Find More Posts by Tanax