[Catalyst] Dispatching question

Matt S Trout dbix-class at trout.me.uk
Mon Nov 14 19:24:31 CET 2005


On Mon, Nov 14, 2005 at 03:06:41PM +1000, Maxim Nechaev wrote:
> Hi, all.
> 
> Catalyst::Manual::Intro.pod declare "Unrestrained URL-to-Action
> Dispatching" in Catalyst.
> Well, but i think all of dispatching types (Path, Regex, Global,
> Local) badly link up URL and his handler.
> For example, i have some forum Controller, begining with url
> "/forum/". Later, i want move it to "/communication/" or
> "/communication/forum/". What i need to do it?

Add

sub action_namespace { 'communication/forum' }

to your Controller class. Any :Local, :LocalRegex and :Path('...') actions
will move.

-- 
     Matt S Trout       Specialists in Perl consulting, web development, and
  Technical Director    UNIX/Linux systems architecture and automation. Mail
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 mailing list