CodeIgniter Forums

Full Version: Confusion between Model and controller
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]stormlead[/eluser]
Hi! all

i have a slight confusion between what do we have in model and what do we have in controller. I often think both have same things??

El Forum

[eluser]rogierb[/eluser]
1 sec. of google got me
- http://en.wikipedia.org/wiki/Model–view–controller
- http://java.sun.com/blueprints/patterns/...ailed.html
- http://c2.com/cgi-bin/wiki?ModelViewController

And a lot of other resources.

In short:
Model = data
Controller = logic
View = screen (Html, xml etc)

El Forum

[eluser]umefarooq[/eluser]
check it also

http://ellislab.com/forums/viewthread/134174/