ZF-7658: addconfig problem with new default route

Issue Type: Bug Created: 2009-08-21T16:54:13.000+0000 Last Updated: 2010-05-21T00:07:23.000+0000 Status: Resolved Fix version(s): Reporter: Muhammad Hussein Fattahizadeh (sweb) Assignee: Jan Pieper (jpieper) Tags: - Zend_Controller

Related issues: - ZF-7118



I want to use add config for my routes:

config file:

<pre class="highlight">
<?xml version="1.0" encoding="UTF-8"?>

i use this default route:

bootstrap :

<pre class="highlight">

$route = new Zend_Controller_Router_Route(':lang/:controller/:action/*', array('controller' => 'index', 'action' => 'index'));

$router = $frontController->getRouter();
$router->addRoute('default', $route);

whe i use url in this type :

<pre class="highlight">
<a href=""></a>

i see this error:

<pre class="highlight">
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.


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 :

<pre class="highlight">

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.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.