[Catalyst] More new shortcuts

Sebastian Riedel sri at oook.de
Sun Nov 6 20:38:43 CET 2005


Small usability improvement today, we've just added $c->controller,  
$c->model and $c->view as shortcuts for $c->component.

Examples:

     $c->model('DBIC::FooTable')->find(1);
     $c->model('Xapian')->search(...);
     $c->forward( $c->view('TT') );
     [% FOR result = c.model('DBIC::BarTable')->search(...) %]

--
sebastian




More information about the Catalyst mailing list