Routing provides you tools that map URLs to controller actions. . use Cake\Routing\Router; echo Router::url(['_name' => 'login']); // Will output /login .. method of our src/Controller/Admin/UsersController.php passing 5 as the first parameter..