[Catalyst] Strange warning...

J. Shirley jshirley at gmail.com
Fri Nov 20 18:16:19 GMT 2009


On Fri, Nov 20, 2009 at 9:50 AM, Rippl, Steve <rippls at woodlandschools.org>w=
rote:

>  Hi,
>
> Catalyst version 5.80011
>
> This line...
>
>
> $c->response->redirect($c->uri_for($c->controller('WsdSis::Controller::Se=
ction')->action_for('list')));
>
> is giving me this warning...
>
> [warn] Used regexp fallback for
> $c->controller('WsdSis::Controller::Section'), which found
> 'WsdSis::Controller::Sections'. Relying on regexp fallback behavior for
> component resolution is unreliable and unsafe. You probably meant
> $c->controller('WsdSis::Controller::Sections') instead of
> $c->controller({'WsdSis::Controller::Section'}), but if you really
> wanted to search, pass in a regexp as the argument like so:
> $c->controller(qr/WsdSis::Controller::Section/)
> at /srv/WsdSis/script/../lib/WsdSis/Controller/Login.pm line 50
>
> But I haven't got $c->controller({'WsdSis::Controller::Section'}) in my
> code?
>
> What am I missing?
>
>
> You said this line:
$c->response->redirect($c->uri_for($c->controller('WsdSis::Controller::Sect=
ion')->action_for('list')));


Notice Section is not Sections?

That's what you are missing :)

-J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20091120/5db1b=
f43/attachment.htm


More information about the Catalyst mailing list