Since: 2.0
Author: Qiang Xue (qiang.xue@gmail.com)
Inheritance: extends yii\base\Widget
 /**
  * Ends recording a block.
  */
 public function endBlock()
 {
     Block::end();
 }
Beispiel #2
0
$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>
Beispiel #3
0
<?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">
Beispiel #4
0
 /**
  * @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);
 }
Beispiel #5
0
 public function init()
 {
     $this->language = Yii::$app->language;
     parent::init();
 }
Beispiel #6
0
 public function init()
 {
     parent::init();
 }