<?php /** * @var $this YdSiteMenuController * * @author Brett O'Donnell <*****@*****.**> * @author Zain Ul abidin <*****@*****.**> * @copyright 2013 Mr PHP * @link https://github.com/cornernote/yii-dressing * @license BSD-3-Clause https://raw.github.com/cornernote/yii-dressing/master/license.txt */ $this->pageTitle = $this->getName() . ' ' . Yii::t('dressing', 'List'); $this->renderPartial('/siteMenu/_menu'); echo '<div class="spacer">'; $this->widget('bootstrap.widgets.TbButton', array('label' => Yii::t('dressing', 'Create') . ' ' . $this->getName(), 'url' => array('/menu/create'), 'type' => 'primary', 'htmlOptions' => array('data-toggle' => 'modal-remote'))); echo '</div>'; $this->widget('zii.widgets.CMenu', array('items' => YdSiteMenu::getTree()));