よく使うものをまとめています。随時更新。 ※最新版では変更になっている場合があります。 CakePHP:ver3.7.6 PHP:7.2.3 Cookbook https://book.cakephp.org/3/ja/ 4.x版はこちら https://qiita.com/egcmrsk/items/09417521c7f0ac5f210f Controller リクエスト 現在のルートを取得 $this->request->getParam(); // controller $this->request->getParam('controller'); // action $this->request->getParam('action'); // prefix $this->request->getParam('prefix');