[Catalyst-dev] [OT] suggestion to augment the default view

Matt S Trout dbix-class at trout.me.uk
Wed Sep 6 16:13:01 CEST 2006


John Napiorkowski wrote:
> I was also thinking this could be a renderview class
> to act as a post operation.  This is starting to sound
> like a better idea now that you tell me about the
> changes for the next version.
> 
> Maybe this is a silly question but can you have more
> than one renderview class per method?  Because I am
> thinking of a couple of these I could use.  I guess I
> could write a class to contain several if not...
> 
> Oh, and does anyone know of a way to use an
> actionclass to force an action to fail to match?  What
> I am trying to do is create a neater way to handle my
> REST based actions.  Right now I do something like:

Yes, override "sub match" in your actionclass. The current one is what handles 
:Args, see Catalyst::Action for more details

-- 
      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