Hi,

  I am using Zend_Controller_Router_Route with
Zend_View_Helper_Navigation_Breadcrumbs and I am building them dynamically
so I can populate the breadcrumbs with the user name...

  The error message on line Zend_Controller_Router_Route(350) SUCKS!!! :) 
here is the code:

 if (isset($name)) {
                if (isset($data[$name]) && !$useDefault) {
                    $value = $data[$name];
                    unset($data[$name]);
                } elseif (!$reset && !$useDefault &&
isset($this->_values[$name])) {
                    $value = $this->_values[$name];
                } elseif (!$reset && !$useDefault &&
isset($this->_wildcardData[$name])) {
                    $value = $this->_wildcardData[$name];
                } elseif (isset($this->_defaults[$name])) {
                    $value = $this->_defaults[$name];
                } else {
                    require_once 'Zend/Controller/Router/Exception.php';
                    throw new Zend_Controller_Router_Exception($name . ' is
not specified');
                }
..
...
....

It makes debugging the routes and naviagation very difficult. I think what
it means is "you need {$name} URL param" or "{$name} not found in {$route}"
or something. But this exception fires when the route and URL parameters
don't match.

Would it be possible to output the route text (e.g. : "/my/path/:user_name")
with the error message? Hmmm, something like:

"Route {$route_name} ({$path}, controller => {$controller}, action =>
{$action}) requires {$name} URL param"

Could someone please report this as a bug, I don't really understand enough
about what it is actually doing in this code for me to say anything other
than the error message is very confusing :)

Thanks,

monk.e.boy
-- 
View this message in context: 
http://n4.nabble.com/Zend-Controller-Router-Route-error-messages-tp1017127p1017127.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to