[Catalyst] method precedence App.pm or App::Controller::Root.pm

Vlad Bazon vlad.bazon at gmail.com
Wed Jul 12 06:09:11 CEST 2006


>Controller::Root - this was introduced specifically to get action
>methods out of MyApp.pm so you don't run into conflicts (somebody
>creating a 'login' action and then wondering why $c->login wasn't
>happy was a very common mistake before).

If this is The single argument for introducing Controller::Root,
then is a good news! (is no need to force working old Cat-applications
to have a C::Root)

I hope that Controller::Root is a inutile thing; don't use 'login' as your
action-name - use 'sign-in' for example - if this 'login' is a predefined
key-word of
the language.


On 7/12/06, Matt S Trout <dbix-class at trout.me.uk> wrote:
>
>
> On 11 Jul 2006, at 23:50, Armin Obersteiner wrote:
>
> > hi!
> >
> > which should be stronger putting a "sub end" into
> > App::Controller::Root
> > or into App.pm. (well App::Controller::Root *is* stronger in 5.7 as i
> > found out ... but i thought App.pm would/should be ...)
> >
> > i'm confused ... sorry ... newbie ... where is a good description
> > on that?
>
> Controller::Root - this was introduced specifically to get action
> methods out of MyApp.pm so you don't run into conflicts (somebody
> creating a 'login' action and then wondering why $c->login wasn't
> happy was a very common mistake before).
>
> --
> Matt S Trout, Technical Director, Shadowcat Systems Ltd.
> Offering custom development, consultancy and support contracts for
> Catalyst,
> DBIx::Class and BAST. Contact mst (at) shadowcatsystems.co.uk for
> details.
> + Help us build a better perl ORM: http://dbix-
> class.shadowcatsystems.co.uk/ +
>
>
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>



-- vb
Toţi se plâng de bani. Nimeni, de lumină [Anghel Rugină]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060712/d98d59ce/attachment.htm 


More information about the Catalyst mailing list