[Catalyst] Scaffold Naming Conventions
Marcus Ramberg
marcus.ramberg at gmail.com
Wed Sep 7 10:41:44 CEST 2005
On 9/6/05, Christopher H. Laco <claco at chrislaco.com> wrote:
>
> I just noticed Catalyst-Helper-Controller-Scaffold-Mason-0.01 showed up
> on CPAN.
>
> First, are these directions correct?
>
> > script/myapp_create.pl controller SomeTable Scaffold CDBI::SomeTable
>
> That looks exactly like the original scaffold. Is that correct?
> I would expect to have to issue a different command:
>
> > script/myapp_create.pl controller SomeTable Scaffold::Mason
> CDBI::SomeTable
>
> otherwise how would create.pl know which scaffold to use?
yes yes yes.. :) 0.02 uploaded to CPAN now.
My real question is thus: what is the official naming policy for
> scaffolds like this?
>
> Catalyst-Helper-Controller-Scaffold-[ViewType] ?
>
> Since I'm not done with my official Handel scaffolds and controllers,
> should they be:
>
> Catalyst-Helper-Controller-Scaffold-Handel
>
> instead of [from the demo]
>
> Catalyst-Helper-Handel-Scaffold or even
> Catalyst-Helper-Controller-Hande::Scaffold?
>
>
> As more and more of these pop up, it would be nice to keep their
> namespac names consistant?
Well, I guess it really depends on how you want your scaffold to work. I
think you might want to have a separate model helper for handel to make
carts and stuff, and then a Scaffold::Handel helper to do the default
controller.
Marcus
--
With regards
Marcus Ramberg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20050907/dedf92ef/attachment.htm
More information about the Catalyst
mailing list