[Catalyst] Relative links
Matt S Trout
dbix-class at trout.me.uk
Wed Nov 9 22:22:26 CET 2005
On Wed, Nov 09, 2005 at 01:02:08PM -0800, Bill Moseley wrote:
> I originally was creating a $c->stash->{myself} entry for
> self-referencing links in all my controllers. Seems like the only way
> since Catalyst can't really know what action is the "self".
As of 5.49, you can access the Catalyst::Action object for the current action
via $c->action. Something like $c->action->attributes->{Path}[0] will work
for any Path or Regex action.
--
Matt S Trout Specialists in Perl consulting, web development, and
Technical Director UNIX/Linux systems architecture and automation. Mail
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Catalyst
mailing list