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

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to