Welcome Guest, Not a member yet? Register   Sign In
When to use models and helpers?
#2

[eluser]Jamie Rumbelow[/eluser]
Ryan,

Helpers should only be used for small bits of repeated code or functionality that you use explicitly in your views. Any data related queries whatsoever should go in your models, and the login functionality itself should either go in a controller (if it's only being used once), or in a Library (if you're calling the same function more than once).

The MVC pattern might be a bit weird when you start out but it really makes sense when you've been using it for a while; and you'll be glad it's there!

Jamie


Messages In This Thread
When to use models and helpers? - by El Forum - 12-06-2009, 05:05 PM
When to use models and helpers? - by El Forum - 12-06-2009, 05:19 PM
When to use models and helpers? - by El Forum - 12-06-2009, 05:36 PM
When to use models and helpers? - by El Forum - 12-06-2009, 05:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB