protected function redirect($actionName,
$controllerName = NULL,
$extensionName = NULL,
array $arguments = NULL,
$pageUid = NULL,
$pageType = NULL,
$delay = 0,
$statusCode = 303)
Example...
If suppose i have payment controller then
1)Redirect to new action
$this->redirect('new');
2)Redirect to edit action
$this->redirect('edit','Payment',NULL,array('payment'=>UID_OF_RECORD));
This comment has been removed by the author.
ReplyDeleteWhen i use the $this->redirect('myaction'); the page give "page not found" error. what is the problem, because I don't know. Can somebady help for me?
ReplyDeleteYou need to pass pageUid argument...
Delete