script

Tuesday, June 19, 2012

Redirect to custom action in extbase

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));   

3 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. When 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?

    ReplyDelete