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-match]: Compilation failed:
syntax error in subpattern name (missing terminator) at offset 13 [CORE
\cake\libs\router.php, line 1397]
in checked router.php line 1397 , and $route var third parameter to
preg_match is missing !!!!
function parse($url) {
if (!$this->compiled()) {
$this->compile();
}
if (!preg_match($this->_compiledRoute, $url, $route)) {
return false;
} else {
.........................................
help please!!!
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en