[Catalyst] Re: Organizing link generators
pagaltzis at gmx.de
Thu Nov 11 10:48:38 GMT 2010
* Alexander Hartmaier <alexander.hartmaier at t-systems.at> [2010-11-11 09:00]:
> I strongly advise to use
> $c->controller('Auth')->action_for('edit') instead of
> '/auth/company/lot/vin/edit' to not let Catalyst guess what you
> mean. The string can fail if you have a typo in it and will be
> hard to spot.
No, that would be `$c->controller('Auth::Company::Lot::Vin')`.
I use the action paths in our app and haven’t had any serious
You can always wrap `uri_for_action` or `uri_for` in your
application class to throw an error if it’s a real issue, anyway.
Aristotle Pagaltzis // <http://plasmasturm.org/>
More information about the Catalyst