從 Controller 重定向到另一個頁面
重定向到應用程式內(特定控制器的另一個操作)。
return $this->redirect([
'controller' => 'myController',
'action' => 'myAction'
]);
重定向到引薦來源頁面
return $this->redirect($this->referer());
重定向到應用程式或特定 URL 之外
return $this->redirect("http://stackoverflow.com/users/1793428/haresh-vidja");