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

Assigning to Ben Scholzen

Fixed in r18294.

Since r18297 it is really possible to use {{1}} syntax in xml configured routes.

I have the same error with the fixed revision

with config like :


Can you please provide more information how to reproduce the error. Your example works fine for me.

No further information provided, so I'll close this issue.