If you do a redirect in CakePHP 1.1 you often have to add an exit() after the redirect statement to stop the script execution:
$this->redirect('controller/action'); exit();
Thanks to a small enhancement in CakePHP 1.2 in the form of an additional parameter for the redirect() function you can now do:
$this->redirect('controller/action', null, true);
It’s the same functionality as in the previous code snippet, but with the advantage that your code becomes testable (you cannot test a function which contains an exit(), as the exit() also stops the execution of the test).
youtube to mp3 converter online free software download
[…]usually posts some very fascinating stuff like this. If you are new to this site[…]
meeting place
[…]usually posts some extremely fascinating stuff like this. If youre new to this site[…]
Interracial Porn
[…]we prefer to honor several other net internet sites on the internet, even when they arent linked to us, by linking to them. Below are some webpages really worth checking out[…]
ixxxporn
[…]the time to study or pay a visit to the subject material or web-sites we have linked to beneath the[…]
Borrelen
[…]The info mentioned in the write-up are a number of the most beneficial accessible […]
Phone Accessories
[…]Every as soon as in a whilst we decide on blogs that we read. Listed below are the most up-to-date web sites that we pick out […]
…Awesome website
[…]Wow, awesome blog format! How long have you been blogging for?[…]