CakePHP 3.x how do I include the params in the mapped resources?
问题 this is what I have in my routes: Router::scope('/', function ($routes) { $routes->extensions(['json']); $routes->resources('CustomerCompanies', [ 'map' => [ 'get_by_account' => [ 'action' => 'get_by_account', 'method' => 'GET', ] ] ]); This is my method get_by_account inside CustomerCompaniesController.php : /** * Pagination method by Customer Account id * * @param string|null $id Customer Account id. * @return void Redirects to index. * @throws \Cake\Network\Exception\NotFoundException When