[Catalyst] calling a method or sub from the View
J. Shirley
jshirley at gmail.com
Wed Dec 10 22:41:52 GMT 2008
On Wed, Dec 10, 2008 at 2:08 PM, Ascii King <tech at swattermatter.com> wrote:
>
> I see now that it isn't a Perl or Catalyst function I need, but a Template
> Toolkit macro. I have it now and i will just keep reading. I apologize for
> wasting your time.
>
No time wasted -- but what you are doing does in some not so light
ways violate the principles of MVC. Your controller should populate a
structure of selected and default values, and the view should
reference that structure for rendering.
-J
More information about the Catalyst
mailing list