-- Mike A <[email protected]> wrote
(on Monday, 14 November 2011, 12:30 PM +0000):
> 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.

Two things:

 * For ZF2, please use the zf-contributors mailing list. Since it's not
   considered stable yet, we're answering most questions in that
   location.

 * Can you explain exactly what's not working, in the form of a test
   case? As in: "given this code, I expect this result, but I'm getting
   this result instead." This will make it _much_ easier for us to
   determine what the issue is, and whether or not it's been addressed.

Thanks!

> 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.

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

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


Reply via email to