Calling data from a model from a view - is this a right way? |
[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 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. |
Welcome Guest, Not a member yet? Register Sign In |