[Catalyst-dev] RFC: action_uri

Matt S Trout dbix-class at trout.me.uk
Mon Oct 2 21:32:35 CEST 2006


A. Pagaltzis wrote:
> * Jonathan Rockway <jon at jrock.us> [2006-10-02 18:15]:
>> 2) Why pass another Catalyst context to uri_for at the end?
>> (and again, why the _for?)
> 
> The existing `uri_for` does its job by asking the dispatcher.
> I didn’t see a way of getting at the dispatcher instance from
> within an ::Action instance. My familiarity with the internals
> at this point is minor, though, so it may well be unnecessary.

It can't, currently. No reason you couldn't add a weak ref back though.

-- 
      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
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-dev mailing list