[Catalyst] Catalyst action attributes

Toby Corkindale toby.corkindale at strategicdata.com.au
Mon Jul 13 05:35:20 GMT 2009


Hi,
I wondered if anyone could point me towards a working example of 
creating custom action attribute handlers for Catalyst?

eg. The contents of Catalyst::Controller::SecretAgent in the example below:


package MyApp::Controller::M;
use parent 'Catalyst::Controller::SecretAgent';
# Provides Vehicle() and Gimmick() actions.

sub bond : Vehicle('Aston Martin') {
   my ($self, $c) = @_;
   # ...
}

sub maxwell_smart : Gimmick('Shoe-phone') {
   My ($self, $c) = @_;
   #...
}

1;



More information about the Catalyst mailing list