MVC Best Practices |
[eluser]umefarooq[/eluser]
Hi, here is answer to your questions 1) When you need different functionality from you existing controller create new controller, you have one controller name page which show only content, second controller name gallery for showing picture gallerias. 2) if you want to organize your controller use modular separation every module will have its own controller,view and models folder 3) for admin panel check this link http://philsturgeon.co.uk/blog/2009/07/C...odeIgniter use third method to create admin panel you will fine HMVC modular separation link also there 4) when you are dealing with different tables then you have to create different models, but you can optimize one model to get common records from tables, like get_by_id,get_many here is link for my_model you can extend your model with this and share the common task of model http://ellislab.com/forums/viewthread/143817/P10/ and here is session of screen cast http://net.tutsplus.com/sessions/codeign...m-scratch/ |
Messages In This Thread |
MVC Best Practices - by El Forum - 04-11-2011, 05:33 PM
MVC Best Practices - by El Forum - 04-12-2011, 02:47 AM
MVC Best Practices - by El Forum - 04-13-2011, 04:07 PM
|