From: Andy Grundman Date: Sat, 12 Nov 2005 16:04:09 +0000 (+0000) Subject: Fixed docs for comp() X-Git-Tag: 5.7099_04~948 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=eeca49a9404fcd2eb90bb6ad7e4146c3a7af3520 Fixed docs for comp() --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 77aa8e9..0e28659 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -342,9 +342,8 @@ Contains the return value of the last executed action. =item $c->component($name) -Gets a component object by name. - - $c->comp('MyApp::Model::MyModel')->do_stuff; +Gets a component object by name. This method is no longer recommended. +$c->controller, $c->model, and $c->view should be used instead. =cut