Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CakePHP 2 Routes
<?php
//esempio senza pass
Router::connect(
'/controller001/:id',
array('action' => 'view'),
array('id' => '[0-9]+')
);
//esempio con pass
Router::connect(
'/controller002/:id',
array('action' => 'view'),
array(
'pass' => array('id'),
'id' => '[0-9]+'
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.