O'Reilly logo

Yii Rapid Application Development Hotshot by James R. Hamilton III, Lauren J. O'Meara

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Reorganizing Menu Items

At the start, we have several administrative menu options for our site. We will reorganize them and add the new options for this chapter.

Engage Thrusters

  1. Edit ch7 | Source Files | protected | views | layouts | main.php and create a new top-level item to collect administrative tasks. Set visible to true, so that the new items render.
      'items'=>array(
        array('label'=>'Home', 'url'=>array('/site/index'), 'visible' => true),
        array(
          'label'=>'Comic Books',
          'url'=>array('/book/index'),
          'items' => array(
            array('label'=>'Publishers', 'url'=>array('/publisher/index')),
            array('label'=>'WishList', 'url'=>array('/wish/index')),
            array('label'=>'Library', 'url'=>array('/library/index')),
            ),
            'authItemName' => 'WishlistAccess',
          ),
     array( ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required