Adam Jacob wrote:
On Mar 14, 2007, at 9:23 AM, RA Jones wrote:
Is this the correct way to call sub-routines, via $c->forward and $c->stash? I know about TIMTOWTDI but I want to start off with 'best practice'.

You can forward $c, which will let you call the form object directly.

Adam
Doesn't $c get forwarded automatically? All Catalyst methods seem to begin with my ($self, $c) = @_;

I tried this: my $form = $c->forward('build_form'); which forwards to the build_form() method which (of course) builds and returns the form. It does work - is that what you had in mind?
--
Richard Jones
Leeds, UK
mailto:[EMAIL PROTECTED]

_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to