[Catalyst] automatically setting template name to the last detached action

marcus marcus.baker at gmail.com
Sun May 21 19:36:38 CEST 2006


$c->stash->{template} seems to automatically get set to the name of
the requested action (using the TT view at least) -- a request for the
url '/artist/save' sets {template} to 'artist/save'.

This is great, but I was wondering if there's a way to have {template}
automatically get set to the last detached action (if there is one) as
opposed to just the initially requested action.

For example, say a user submits to /artist/save, and there's invalid
data so they get detached to /artist/edit, {template} would in the end
be 'artist/edit'.

Infeasible?  Any plugins or suggested ways of going about this?

-Marcus Baker



More information about the Catalyst mailing list