ZF-7658: addconfig problem with new default route
Description
I want to use add config for my routes:
config file:
<?xml version="1.0" encoding="UTF-8"?>
Zend_Controller_Router_Route_Regex([a-z]{2})/page/(.*)indexshowpage12%s/page/%s
i use this default route:
bootstrap :
$route = new Zend_Controller_Router_Route(':lang/:controller/:action/*', array('controller' => 'index', 'action' => 'index'));
$router = $frontController->getRouter();
$router->addRoute('default', $route);
$router->addConfig($config->routes);
whe i use url in this type :
i see this error:
Uncaught exception 'Zend_Controller_Router_Exception' with message 'Cannot assemble. Too few arguments?' in \library\Zend\Controller\Router\Route\Regex.php:196
what is my problem? help me. thank.
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2009-08-22T12:36:30.000+0000
Assigning to Ben Scholzen
Posted by Jan Pieper (jpieper) on 2009-09-18T15:26:04.000+0000
Fixed in r18294.
Posted by Jan Pieper (jpieper) on 2009-09-18T16:20:08.000+0000
Since r18297 it is really possible to use {{1}} syntax in xml configured routes.
Posted by Mathieu Delisle (m4d3l) on 2009-10-31T17:13:08.000+0000
I have the same error with the fixed revision
with config like :
Posted by Jan Pieper (jpieper) on 2009-11-19T13:30:31.000+0000
Can you please provide more information how to reproduce the error. Your example works fine for me.
Posted by Jan Pieper (jpieper) on 2010-05-21T00:07:23.000+0000
No further information provided, so I'll close this issue.