create joomla db component:read / update
I've browsed through a lot tutorials, but still have questions about MVC...
I want to make a simple DB component, that
-displays db info
-allows to edit
-add
-delete


My most general question is: how many controllers should i make, how many models, and how many views?

What I thought would be good was to make 1 controller, 4 views (one for display, one for edit, 1 for add and 1 for delete), and I thought using just 1 model, but i'm not sure if this is the good approach.  Should i use 4 models...?  Or should i link the same model to all the views?


Thx,
vinny
create joomla db component:read / update
===

I've browsed through a lot tutorials, but still have questions about MVC...
I want to make a simple DB component, that
-displays db info
-allows to edit
-add
-delete


My most general question is: how many controllers should i make, how many models, and how many views?

What I thought would be good was to make 1 controller, 4 views (one for display, one for edit, 1 for add and 1 for delete), and I thought using just 1 model, but i'm not sure if this is the good approach.  Should i use 4 models...?  Or should i link the same model to all the views?


Thx,
vinny