[Catalyst] $FindBin::Bin Magic Tests

Christopher H. Laco claco at chrislaco.com
Mon Nov 7 16:03:39 CET 2005


Christopher H. Laco wrote:
[big snip]

Big duh.

> # File [TestApp\lib\TestApp\C\Cart.pm] does not exist

Of course it doesn't. Those are now TestApp\Controller\Cart.pm by
default. Crap.

So, if I'm doing this in code:

> $helper->mk_component($app, 'model', 'Cart', 'Handel::Cart', 'testdsn', 'testuser', 'testpass');

Where do I stuff -short?

> $helper->mk_component($app, 'model', '-short', 'Cart', 'Handel::Cart', 'testdsn', 'testuser', 'testpass');
> $helper->mk_component($app, '-short', 'model', 'Cart', 'Handel::Cart', 'testdsn', 'testuser', 'testpass');

?

I'll assume that calling $helper->mk_app('MyApp') creates Controller,
Mode, Views directories instead of C, M, V.

Can I specify the -short option to catalyst.pl to have it create C, M, V
instead, or is that something I have to do for each call to create.pl
when creating controllers, models, and views?

-=Chris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3178 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20051107/18a9ed1d/smime.bin


More information about the Catalyst mailing list