/** * Ends recording a block. */ public function endBlock() { Block::end(); }
$this->params['breadcrumbs'][] = ['label' => 'Posts', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="workbench"> <?php Block::begin(array('id' => 'sidebar')); ?> <?php $sideMenu = array(); $sideMenu[] = array('icon' => 'arrow-left', 'label' => Yii::t('app', 'Overview'), 'url' => Url::to(array('/posts/post/index'))); echo SideNav::widget(['type' => SideNav::TYPE_PRIMARY, 'heading' => 'Options', 'items' => $sideMenu]); ?> <?php Block::end(); ?> <h1><?php echo Html::encode($this->title); ?> </h1> <?php echo $this->render('_form', ['model' => $model]); ?> </div>