I actually just noticed the same behavior today.  For testing an email
method, I called it at the end of an index action.  I got two copies of the
email.  Normally, the mail will be sent after filtering through some
conditionals, so I don't think it will be a problem.  I do have a connect
method assigned to the action I was testing in. Other than that, I don't
know why the index action was called twice.

Jeff

On Thu, Dec 10, 2009 at 12:24 PM, Dr. Loboto <drlob...@gmail.com> wrote:

> You can check is it "internal redirect" (like requestAction) or actual
> one by checking HTTP requests. If there are two HTTP request you need
> to search redirect in code, if no - the problem is in requestAction or
> setAction or direct call of this method.
>
> On Dec 10, 8:18 pm, bujanga <buja...@gmail.com> wrote:
> > There was a requestAction called from my layout BUT I disabled it
> > during troubleshooting. In fact, All links to js, css, and images are
> > stripped from my layout and views. I have no beforeRender or
> > afterFilter.
> >
> > View still reloads. Odd thing is, it goes twice when called via a
> > redirect from another action but not when it is refreshed by F5.
> >
> >  Getting frustrated. Will check to see if other views are going twice.
> >
> > Gary
>
> 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+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to