[Catalyst] Dispatching question

Sebastian Riedel sri at oook.de
Mon Nov 14 11:26:59 CET 2005


Am 14.11.2005 um 07:17 schrieb Maxim Nechaev:

> Thanks for answers!
>
> SR> Short answer: Use Local actions and mod_rewrite or a custom  
> rewrite
> SR> plugin.
> What is the best starting point for information about writing custom
> rewrite plugin?

perldoc Catalyst::Plugin::WritingPlugins

>
>
> SR> Not so short answer: Your "forum" controller looks like it  
> wants to
> SR> be a application, which could be deployed as a mod_perl handler or
> SR> FCGI with whatever prefix you want. There is no need to stuff all
> SR> functionality in a single Cat app just because it's possible.
> Is there some official project ideology "What is Catalyst
> Application?", "What is Catalyst Controller?". If i need to create web
> site with "forum" and "chat" it must be two different Catalyst
> Application without any logical connection between them? Catalyst is a
> tool for creating some blocks of site or whole site?

Both, it's completely up to you, multiple Catalyst apps can also  
share base classes...

>
> On CPAN present "Catalyst::Plugin::SubRequest" plugin. From
> documentations i can't understand designation of this module. Maybe it
> may serve as configuration of whole site by dispatching some url
> prefixes to different Controllers or Applications?

It's what it says, a plugin for sub-requests, using external paths  
and not ignoring begin/auto/end..., unlike forward.


--
sebastian




More information about the Catalyst mailing list