php - Blog in CodeIgniter : Where Does the Model start, and the Controller End? -


I'm testing CodeIgniter, and am trying to create a simple blog. But the video tutorial is good but very incomplete I am not very familiar with the MVC structure, and I am wondering how the model is used. For example, I am currently running "Admin" of my blog, which allows you to create, delete, and modify entries. Only XHtml in the scene, and the controller takes care of the rest What should be in the model? Is everything in database related model (i.e. inserts, updates, selections, etc.)?

Depends on what you ask.

Some people should put as much as possible in the model (verification, data retrieval, etc.), and the controller should smash it to get this required data, which is then handheld about this view Think: If you have more than one controller, then access a model, then common things should not be kept in a common place between them (unless the normal thing is actually something to do with the model) ?


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -