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

Matt S Trout dbix-class at trout.me.uk
Wed Jul 12 00:59:21 CEST 2006


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/ +





More information about the Catalyst mailing list