By the way, you can also do this:

$this->log($this) if you want to really analyse the request. :)

Cheers,
Adam

On Dec 19, 12:13 am, WebbedIT <p...@webbedit.co.uk> wrote:
> Tested your theory that something in my page with a local relative
> path was calling the page again.  To do this I added an extra
> parameter to my edit function to see if it would echo any extra params
> into my debug message.
>
> function edit($id = null, $extra = null) {
>   ..
>   $this->log('Edit form displayed for record # '.$id.' ('.$extra.')
> <br />', LOG_DEBUG);
>   ..
>
> }
>
> A few tests showed that when the Edit form loaded twice there wasn't
> an extra parameter being passed.
>
> 2008-12-18 14:05:59 Debug: TelephonyNumber Index
> 2008-12-18 14:06:23 Debug: Edit form displayed for record # 6815 ()
> 2008-12-18 14:06:24 Debug: Edit form displayed for record # 6815 ()
> 2008-12-18 14:06:27 Debug: TelephonyNumber Index
> 2008-12-18 14:06:31 Debug: Edit form displayed for record # 877 ()
> 2008-12-18 14:06:32 Debug: Edit form displayed for record # 877 ()
>
> It was a nice punt though as I can see how referencing a script or img
> src without a leading / would cause it to look for the script/img
> within the same action causing it to execute again.
--~--~---------~--~----~------------~-------~--~----~
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