[Catalyst] Strange warning...

Alan Humphrey alan.humphrey at comcast.net
Fri Nov 20 18:19:12 GMT 2009


I had this problem the other day and it was hell to figure out because I
couldn't see the error in front of my face.

 

Your line:

 

$c->response->redirect($c->uri_for($c->controller('WsdSis::Controller::Secti
on')->action_for('list')));

 

Is missing an 's' after "Section".

 

 

- Alan

 

From: Rippl, Steve [mailto:rippls at woodlandschools.org] 
Sent: Friday, November 20, 2009 9:50 AM
To: catalyst at lists.scsys.co.uk
Subject: [Catalyst] Strange warning...

 

Hi,

Catalyst version 5.80011

This line...

$c->response->redirect($c->uri_for($c->controller('WsdSis::Controller::Secti
on')->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?

Thanks,
Steve


--
Steve Rippl
Technology Director
Woodland Public Schools
360 225 9451 x326

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20091120/a2f3a457/attachment.htm


More information about the Catalyst mailing list