[Catalyst] Model go boom in 5.66

Matt S Trout dbix-class at trout.me.uk
Tue Mar 14 16:36:04 CET 2006


Christopher H. Laco wrote:
> I'd say it's only a bug because it returned a Model instead of a View.
> But all in all, if I'm too silly to actually ask for a View, I should
> get nothing...well, at least deserve to get nothing.  :-)

Right. now $c->view($name) where there's no MyApp::V::$name or View::$name 
will do a regex search, so you'll get the first view that matches that prefix.

We could I guess make it an error instead - or make $c->view return the only 
view if there's just the one and error if there's more than one. What do 
people think? (and do we want views, models and controllers as methods to get 
the list to choose from?)

-- 
      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Catalyst mailing list