Welcome Guest, Not a member yet? Register   Sign In
Library vs. Controller
#4

[eluser]pankaj[/eluser]
lets assume that we don't have a validation library then what you will do for validation you will write all your validation code in you corresponding controller. and this will be a mess if you add hole validation code in one controller. that's why why libraries are created so that you don't need to do all coding in your controller and besides that you can access that libraries throughout your application as this is called code reusability.
this is the big advantage of MVC patterrn.


Messages In This Thread
Library vs. Controller - by El Forum - 10-28-2008, 02:22 AM
Library vs. Controller - by El Forum - 10-28-2008, 06:05 AM
Library vs. Controller - by El Forum - 10-28-2008, 07:50 AM
Library vs. Controller - by El Forum - 10-28-2008, 12:55 PM
Library vs. Controller - by El Forum - 10-28-2008, 06:47 PM
Library vs. Controller - by El Forum - 10-29-2008, 01:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB