This document is for a version of CakePHP that is no longer supported. Please upgrade to a newer release!

Page Contents

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. array(‘controller’=>’posts’, ‘action’=>’index’)) to string urls.

Read more about ways to configure the Router here: https://book.cakephp.org/1.3/en/The-Manual/Developing-with-CakePHP/Configuration.html#routes-configuration

Router also include other utility methods for dealing with urls.