[Catalyst] Preventing Catalyst from loading a Controller pm module
Lars Balker Rasmussen
lars at balker.dk
Tue Oct 30 14:39:06 GMT 2007
On Tue, Oct 30, 2007 at 03:19:48PM +0200, Valentin Tumarkin wrote:
> Hi,
>
> I was wondering if there's a "standard" way for preventing Catalyst from
> loading a Controller module. I would like to keep my base Controller modules
> in the MyApp/Controller directory, but do not want Catalyst treating them as
> http-client accessible modules.
>
> For example:
> MyApp/Controller/BaseController.pm
> MyApp/Controller/AdvancedBaseControllerClass.pm (uses BaseController)
> MyApp/Controller/ActualController.pm (uses AdvancedBaseController)
>
> At this time I'm putting my base classes in the MyApp/Base/.. directories,
> but this method just doesn't seem as "clean" to me.
This isn't clean(!) per se, but you could simply do
sub auto { 0 }
in the virtual bases and
sub auto { 1 }
in the real controllers.
--
Lars Balker Rasmussen Consult::Perl
More information about the Catalyst
mailing list