[Catalyst] question from tutorial - does creating HTML in a
controller using HTML::Widget violate MVC?
Eden Cardim
edencardim at gmail.com
Wed Dec 6 17:28:39 GMT 2006
On 12/6/06, Michael Reece <mreece at vinq.com> wrote:
> what about implicit data retrieval via method calls on objects passed
> to templates?
>
> <% $thing->owner->name %>
Well, if the view shouldn't have access to the implicit data via some
object, the controller shouldn't have passed that object to the view
in the first place. An object is still an object, whether it's stored
in a database or not.
--
Eden Cardim
Instituto Baiano de Biotecnologia
Núcleo de Biologia Computacional e Gestão de Informações Biotecnológicas
Laboratório de Bioinformática
--
"you seem to think that 'close enough' is close enough...
please learn to be 'literal' around programming."
merlyn - on irc.freenode.net#perl
More information about the Catalyst
mailing list