Following on from my last email...

Zend\Mvc\Router\Http\TreeRouteStack.php
public function assemble(array $params = array(), array $options = array())
    {
        if (!isset($options['name'])) {
throw new Exception\InvalidArgumentException('Missing "name" option');
        }

        $names = explode('/', $options['name'], 2);
        $route = $this->routes->get($names[0]);

Does not work. Changing "if (!isset($options['name'])) {" and "$names = explode('/', $options['name'], 2);" to check/explode $params instead of $options works...

public function assemble(array $params = array(), array $options = array())
    {
        if (!isset($params ['name'])) {
throw new Exception\InvalidArgumentException('Missing "name" option');
        }

        $names = explode('/', $params ['name'], 2);
        $route = $this->routes->get($names[0]);

Seems that either the above change needs incorporating or something back down the line needs treatment. If change to the above then the InvalidArgumentException message would also need change.

Could someone take a look at this and process it through the formal development cycle? I'm not being lazy -- simply accepting there are better heads than mine for this deep level stuff.

Caveat: Wearing my Monday morning head -- two brain cells are not fully cooperating yet. If I haven't explained it well then please have pity.

Mike A.

--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to