Welcome Guest, Not a member yet? Register   Sign In
How to split the controller / model workload
#2

[eluser]Yash[/eluser]
What I feels..

Why should we use models.
For some common database related functions.It saves time and space.and also for big database queries.

Controller -> if you have less code and non repetitive go ahead and use controller as model even as view.

but for large code put each code in separate view file.

Models - mainly for database related queries.
view - contain HTML ,CSS, Javascript

Hope this helps youSmile


Messages In This Thread
How to split the controller / model workload - by El Forum - 06-24-2008, 03:23 AM
How to split the controller / model workload - by El Forum - 06-24-2008, 03:38 AM
How to split the controller / model workload - by El Forum - 06-24-2008, 03:56 AM
How to split the controller / model workload - by El Forum - 06-24-2008, 04:03 AM
How to split the controller / model workload - by El Forum - 06-24-2008, 04:17 AM
How to split the controller / model workload - by El Forum - 06-24-2008, 04:39 AM
How to split the controller / model workload - by El Forum - 06-24-2008, 04:56 AM
How to split the controller / model workload - by El Forum - 06-24-2008, 05:27 AM
How to split the controller / model workload - by El Forum - 06-24-2008, 05:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB