[Catalyst-dev] Re: Developing action_uri() for Catalyst 5.80
Aristotle Pagaltzis
pagaltzis at gmx.de
Sat Jun 7 01:47:56 BST 2008
* J. Shirley <jshirley at gmail.com> [2008-06-06 23:00]:
> My only thought is to not use strings to denote action paths.
> $c->controller('MyController')->action_for('action') has served
> me better.
Better how? You’re still passing strings, the only difference is
you’re passing two of them using a much more verbose syntax.
I’m not particularly wedded to the specific syntax, though, as
far as I care it might just as well be `MyController::action` or
`MyController->action` instead of `/mycontroller/action`, per the
recent discussion elsewhere.
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
More information about the Catalyst-dev
mailing list