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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---