Wednesday, February 2, 2011

Re: problem with new controller - not being recognized?

On Tue, Feb 1, 2011 at 3:49 PM, Madprog <fritz@hoseadesigns.com> wrote:
> I have a cake app that Is about 3 years old.  I never had any problem
> with it.  Just today I attempted to create a new controller and view.
> Every time I access the URL for the new controller, it redirects me
> to /.  All the other controllers work fine.  This one redirects me to
> root every time, without throwing any errors.  I have verified that
> the controller file gets loaded but the preFilter function is never
> called and index is never executed either.  I don't understand what is
> going on.  I used cake bake to create the controller.  Does anyone
> have any thoughts?

Perhaps it's a routing issue. Do you have any wildcard routes that may
be interfering?

Could it be Auth that's redirecting, but you're not seeing any flash
message? Is your loginRedirect set to '/'? For that matter, are you
logged in while trying to get to this action? It may just be a matter
of allowing the action in beforeFilter().

Also, have you tried setting debug to 2? And clearing the cache?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: