Welcome Guest, Not a member yet? Register   Sign In
Calling data from a model from a view - is this a right way?
#11

[eluser]F. Albrecht[/eluser]
[quote author="Colin Williams" date="1218252147"]Ultimately, any way that "works" is right, is it not?[/quote]

Yeah, that ist right Smile

But my claim is to look around before I "stuck" on a (wrong) programming style.

Here is another thread which claims the "calling a model from a view" thesis: click me.

Hmmm, I'm spinning...

@fatnic: With your snippet data will be availabe only in the calling controller (there to all methods of course), if you route to another one you have to call the model again from this controller. This is not DRY.




Theme © iAndrew 2016 - Forum software by © MyBB