Still not 100% sold on this solution, but it is likely that my use of
FireBug and FirePHP was causing extra reloads of my page. I say I'm
not 100% as I am sure the latest version of FireBug, which I am using,
is supposed to have stopped this issue.
Ok, armed with AD7six's obvious advice to use logging to see what was
going on, I revisited this issue as I never fully dealt with it, just
moved onto other things instead.
I have added various log calls into my code and after creating 10
records as a test case and then deleting those 10 records
Try an exit() after the redirect/flash.
I will first try the exit() call as I've seen that mentioned in
relation to Session-flash and it does seem to be a case that if the
flash message does not appear in time the script continues and then
kicks out an error when it cant find the view.
I was
Firstly thanks for such a comprehensive response :o)
Your issue stems from a combination of factors/bad habits/
assumtpions ;)
I am ully aware that I have bad coding habits as I am totally self-
taught and have never been part of a development team. I am hoping
CakePHP will introduce me to
On Dec 9, 10:14 am, WebbedIT [EMAIL PROTECTED] wrote:
Try an exit() after the redirect/flash.
I will first try the exit() call as I've seen that mentioned in
relation to Session-flash and it does seem to be a case that if the
flash message does not appear in time the script continues and
On Dec 9, 2:12 pm, WebbedIT [EMAIL PROTECTED] wrote:
Firstly thanks for such a comprehensive response :o)
Your issue stems from a combination of factors/bad habits/
assumtpions ;)
I am ully aware that I have bad coding habits as I am totally self-
taught and have never been part of a
Can anyone see that the problem is with the following?
function delete($id = null) {
if (!$id) {
$this-flash(__('Invalid telephony number', true), array
('action'='index'));
} else {
$parent = $this-TelephonyNumber-read(array
('TelephonyNumber.parent_model',
With debug set to '2', I can see that this is for some reason ignoring
my flash redirect (even though it is deffinately delting the record)
and is trying to render a view. As I don't have a view for delete
actions it throws out the Not Found error, or when debug is set to '2'
it asks me if I
Bump ... could really do with some help on this one, delete actions
are still intermittently ignoring the flash command and trying to
render a view.
On Dec 8, 2:30 pm, WebbedIT [EMAIL PROTECTED] wrote:
With debug set to '2', I can see that this is for some reason ignoring
my flash redirect
Try an exit() after the redirect/flash.
--~--~-~--~~~---~--~~
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
I was having a similar problem with my pages on a hosted server and
found it was due to the way the cache and expires headers were being
set.
I wrote about it on my blog at
http://blog.accuweaver.com/2008/11/27/sourceforgenet-application-hosting-cache-issue/.
Basically boiled down to adding one
11 matches
Mail list logo