Skip to content
This is the documentation for pieceofcake2/cakephp, a community-maintained fork of CakePHP 2.x for PHP 8. About this fork.

Router ​

Router can be used to parse URLs into arrays containing indexes for the controller, action, and any parameters, and the opposite: to convert URL arrays (eg. ['controller' => 'posts', 'action' => 'index']) to string URLs.

Read more about ways to configure the Router and the Router class.

Based on the CakePHP Cookbook. Content licensed under CC BY-NC-SA 4.0. Not affiliated with the Cake Software Foundation.