[Catalyst] chained actions, knowing if current action is an endpoint or not

Matt S Trout dbix-class at trout.me.uk
Fri Feb 2 09:21:02 GMT 2007


On 1 Feb 2007, at 17:37, John Napiorkowski wrote:
> Hmm, interesting point.  I'm going to go and try
> writing something that trys to modify the
> ActionContainer and see what happens! --john

You'd be better screwing with $c->action, I think. Something like

if ($c->stack->[-1] eq $c->action->chain->[-1]) {
   # we're in the last action in the chain
--  
Matt S Trout, Technical Director, Shadowcat Systems Ltd.
Offering custom development, consultancy and support contracts for  
Catalyst,
DBIx::Class and BAST. Contact mst (at) shadowcatsystems.co.uk for  
details.
+ Help us build a better perl ORM: http://dbix- 
class.shadowcatsystems.co.uk/ +





More information about the Catalyst mailing list