Welcome Guest, Not a member yet? Register   Sign In
Regarding OOP and MVC
#5

[eluser]pjturpeau[/eluser]
[quote author="greedyh4mster" date="1269797430"]
I have checked out several cms here and realized that most of them have the common concept of: controller->library->model->View

So if I am to put my Member object into a library. Wouldn't it be better if I have the member library to handle the member objects, including 'database related process'. So the concept will end up like: controller->library->view

Then again. The Model will seem useless in the above concept, isnt it?
[/quote]

This is the approach I try to have most of the time. However, the model is not useless, since it could be used by several different libraries which may act as plugins to a main one (for example).


Messages In This Thread
Regarding OOP and MVC - by El Forum - 03-28-2010, 06:30 AM
Regarding OOP and MVC - by El Forum - 03-28-2010, 09:19 AM
Regarding OOP and MVC - by El Forum - 03-28-2010, 09:31 AM
Regarding OOP and MVC - by El Forum - 04-20-2010, 12:39 PM
Regarding OOP and MVC - by El Forum - 05-20-2010, 07:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB