[catalyst] conditional loading of Controllers and Models

Christopher H. Laco claco at chrislaco.com
Mon Jul 16 14:26:09 GMT 2007

Matt S Trout wrote:
> On Mon, Jul 16, 2007 at 02:48:50PM +0200, Daniel McBrearty wrote:
>> is there a way to have some C's and M's load into catalyst
>> conditionally? for example, if some config variable is set?
> =

> Exclude some of them with setup_components config.
> =

> Or just do it via @INC manipulation - I use this a fair bit for testing.
> =

> Depends what you're trying to achieve really, and you haven't told us :)
> =

Actually, this has me curious as well. In my case, I'd like to load
"Setup" controllers  only when someone passes a --setup arg...so they
can use the web based config once, deliberately. After that, just
loading the app wouldn't expose those controllers to the world accidentally.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070716/fa20=

More information about the Catalyst mailing list