From:
http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3
A small change has also been done to routing params. Routed params
should now only consist of alphanumeric chars, - and _ or /[A-Z0-9-_+]
+/.
- params are all alphanumeric
but Not Working
Router::connect(
'/:title-o-:o
Router::connect(
'/:slug-n-:id',
array('controller' => 'pages', 'action' => 'news_detail'),
array(
'pass' => array('id', 'slug'),
'slug' => '.*',
'id' => '[\d]+'
)
);
is this correct in CakePHP 1.3 ? it generates this error
Warning (2): preg_match() [function.preg-matc