Welcome Guest, Not a member yet? Register   Sign In
Load a model in a view
#11

[eluser]xwero[/eluser]
I recently discovered how easy it is to add convenience to the core. If you look at my last response, a bit shaky code but it was a last moment addition, you see it looks for a model method with the same name as controller method to load data for the view. This means you don't have to call the model and the method in the controller or in the view.




Theme © iAndrew 2016 - Forum software by © MyBB