Wednesday, January 5, 2011

Re: Help with odd controller issue when trying to add new action

Thanks! I'm not sure why, but setting debug to 2 actually caused it
to immediately load correctly. I then set debug back to 0, and it
continued to work. Not really sure why, but hey...whatever works. :-)

Russell

On Jan 4, 5:57 pm, cricket <zijn.digi...@gmail.com> wrote:
> On Sun, Jan 2, 2011 at 7:04 PM, Russell <russell.g.one...@gmail.com> wrote:
> > I've been working on a 1.2 CakePHP app and everything seemed to be
> > going well until today when I hit an oddity  that I was hoping someone
> > could offer some advice on.
>
> > I'm working on a local development environment using XAMPP and a
> > production environment.  Currently, I have a working app with 11
> > different actions on a single controller that's working great in both
> > environments.
>
> > Today, I needed to add a new action.  So, I added the normal new
> > function within the controller class and the new view template.
> > However, when I try to access the new action on my dev environment, I
> > receive a 404 error.  The odd thing is that when I move the files to
> > Production, the new action works great. All existing actions work
> > perfectly on my dev environment...it's just when I try to add a new
> > action that I'm running into issues.
>
> Have you tried setting debug to 2? Although, I suppose your live
> server has it set to 0, so the problem might not be Cake's normal 404
> in thecase of an error. But it might be worth checking.
>
> Anything in the log? Does this new action have anything to do with the
> file system? (I'm thinking a permissions issue)

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en

No comments: