Welcome Guest, Not a member yet? Register   Sign In
The right way to make it in mvc
#6

(05-22-2016, 11:03 PM)PlorntXhizors Wrote: Can i use one model, controller for all my view files? Like functions.php in wordpress?


You should use one model per database table,

Controllers should be specific to the task and views should be one view for that task.

If you need a lot of code methods place them into a helper file.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: The right way to make it in mvc - by skunkbad - 05-20-2016, 09:13 AM
RE: The right way to make it in mvc - by Wouter60 - 05-20-2016, 10:21 AM
RE: The right way to make it in mvc - by cartalot - 05-20-2016, 11:41 AM
RE: The right way to make it in mvc - by InsiteFX - 05-23-2016, 03:14 AM
RE: The right way to make it in mvc - by Andy N - 05-23-2016, 08:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB