Controller {

Action {
 ...
 $this->response->header('Location', 'http://domain/custom.php?url='.
$url);
 $this->response->send();

 // Problem is response redirecting before run below codes.  /
 ...
    if ($this->Book->save($this->request->data)) {
                $this->Session->setFlash(__('The book has been
saved'));
                $this->redirect(array('action' => 'index'));
 ...
 }
}

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to