コントローラーでのリダイレクト処理。
◯ 同じコントローラーのアクション指定
1 | return $this->redirect(['action' => 'index']); |
◯ 異なるコントローラーのアクション指定
1 | return $this->redirect(['controller' => 'Users', 'action' => 'index']); |
◯ 別サイトのURL指定
1 | return $this->redirect('https://cakephp3.com'); |