Welcome Guest, Not a member yet? Register   Sign In
Calling a model from a view?
#3

[eluser]tomdelonge[/eluser]
Maybe your specific needs are different, but generally, your model could have the "encrypt password" function just fine. You'd use it in the controller. When you needed to echo something, you pass it to your view from your controller and echo it out.

Also, if your model is the only class that needs the function, there's no use in making a library for it. It just depends on where you need the function to be used from.


Messages In This Thread
Calling a model from a view? - by El Forum - 03-13-2010, 10:20 PM
Calling a model from a view? - by El Forum - 03-13-2010, 10:21 PM
Calling a model from a view? - by El Forum - 03-13-2010, 10:26 PM
Calling a model from a view? - by El Forum - 03-13-2010, 10:28 PM
Calling a model from a view? - by El Forum - 03-13-2010, 10:57 PM
Calling a model from a view? - by El Forum - 03-14-2010, 01:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB