How to send variable to the custom script and run without redirect
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home