リダイレクトを行うコントローラーアクションでは、これを使用します:
$this->redirect(array('controller' => 'tools', 'action' => 'index'));
またはこれ
$this->redirect('/tools/index');
そして、リダイレクトでデータを渡すときは、これを使用します:
$this->redirect('tools/index/?myArgument=12');
しかし、「this-redirect-array」表記で「myargument」を渡す方法が見つかりませんでした。
いくつかのルーティングの問題があるため、これを使用したくありません:
$this->redirect(array('controller' => 'tools', 'action' => 'index', "myArgument"));
私はこのようなものが必要です:
$this->redirect(array('controller' => 'tools', 'action' => 'index', "?myArgument=12"));