/** * 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>
<?php use yii\helpers\Html; use yii\widgets\Block; use yii\helpers\HtmlPurifier; /** * @var yii\web\View $this * @var frenzelgmbh\sblog\models\Post $model */ $this->title = $model->title; $this->params['breadcrumbs'][] = ['label' => 'Posts', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <?php Block::begin(array('id' => 'sidebar')); ?> <div class="lookover"> <img src="img/frontimage2.jpg" alt="Cassandra" class="img-responsive"></img> </div> <fieldset class="fieldbodysc bg_white"> <?php if (class_exists('frenzelgmbh\\sblog\\widgets\\PortletPostsSearch')) { echo frenzelgmbh\sblog\widgets\PortletPostsSearch::widget(array('maxResults' => 5, 'title' => NULL)); } ?> </fieldset> <div class="site-index">
/** * @param array|integer $config array or block position constant * @return void|static */ static function begin($config = []) { $config = is_array($config) ? $config : ['position' => $config]; parent::begin($config); }
public function init() { $this->language = Yii::$app->language; parent::init(); }
public function init() { parent::init(); }