コード例 #1
0
 /**
  * Ends recording a block.
  */
 public function endBlock()
 {
     Block::end();
 }
コード例 #2
0
ファイル: create.php プロジェクト: frenzelgmbh/sblog
$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>