> -----Original Message-----
> From: Matt S Trout [mailto:[EMAIL PROTECTED] 
> Sent: 23 April 2008 14:34
> To: The elegant MVC web framework
> Subject: Re: [Catalyst] Dispatching based on path and host/domain
> 
> :Local is a shortcut for 
> :Path($controller->path_prefix.'/'.$method_name)
> 
> Those values came straight off the attributes - you'd set the 
> Domain key
> just by using :Domain('foobar.com') exactly as you did in 
> your original
> example (which is where I got the key name from :)

And the light comes on because someone is finally home!
I was thinking that :Local :Path etc were shortcuts to defining an
ActionClass not attributes to the (mostly) default ActionClass. Bingo it
all makes sense now. Many thanks.

Digging around, is it a sane thing to have:

__PACKAGE__->_action_class('Catalyst::Action::MyAction');

At the top of a controller if I want all of the methods to use the same
non-default ActionClass? I'm nervous about using anything that starts
with _

On a related note: While I was looking for information about setting a
default ActionClass I came across the ActionClass info in
http://search.cpan.org/~mstrout/Catalyst-Manual-5.701004/lib/Catalyst/Ma
nual/ExtendingCatalyst.pod I wish I'd found that at the start, maybe
I'll put together a patch for the Catalyst::Action and
Catalyst::Manual::Actions pod that points people back there for info
about using "match" (does that sound like a good thing to do?)

_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to