Issues

ZF-11082: Missing Comma, 'Example #6 Iterating a container' not working

Issue Type: Docs: Problem Created: 2011-02-16T16:04:48.000+0000 Last Updated: 2011-02-17T20:09:09.000+0000 Status: Resolved Fix version(s): - 1.11.4 (03/Mar/11)

Reporter: Uwe E. Schirm (frezno) Assignee: Ramon Henrique Ornelas (ramon) Tags: - Zend_Navigation

Related issues: Attachments:

Description

Comma terminating second array is missing. Corrected here:

<pre class="highlight">
// Example #6 Iterating a container
$container = new Zend_Navigation(array(
    array(
        'label' => 'Page 1',
        'uri'   => '#'
    ),
    array(
        'label' => 'Page 2',
        'uri'   => '#',
        'pages' => array(
            array(
                'label' => 'Page 2.1',
                'uri'   => '#'
            ),
            array(
                'label' => 'Page 2.2',
                'uri'   => '#'
            )
        )
    ),
    array(
        'label' => 'Page 3',
        'uri'   => '#'
    )
));

Comments

Posted by Kai Uwe (kaiuwe) on 2011-02-17T00:03:10.000+0000

Link to the affected section in the documentation: [http://framework.zend.com/manual/en/…]

Posted by Ramon Henrique Ornelas (ramon) on 2011-02-17T20:09:09.000+0000

Fixed in trunk r23718 merged to branch release 1.11 r23719 - thanks.

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts