mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
commit
50b192eb1b
1 changed files with 4 additions and 4 deletions
|
@ -1065,13 +1065,13 @@ class RouterTest extends CakeTestCase {
|
|||
Router::connect(
|
||||
'/:lang/:color/posts/view/*',
|
||||
array('controller' => 'posts', 'action' => 'view'),
|
||||
array('persist' => array('lang', 'color')
|
||||
));
|
||||
array('persist' => array('lang', 'color'))
|
||||
);
|
||||
Router::connect(
|
||||
'/:lang/:color/posts/index',
|
||||
array('controller' => 'posts', 'action' => 'index'),
|
||||
array('persist' => array('lang')
|
||||
));
|
||||
array('persist' => array('lang'))
|
||||
);
|
||||
Router::connect('/:lang/:color/posts/edit/*', array('controller' => 'posts', 'action' => 'edit'));
|
||||
Router::connect('/about', array('controller' => 'pages', 'action' => 'view', 'about'));
|
||||
Router::parse('/en/red/posts/view/5');
|
||||
|
|
Loading…
Reference in a new issue