Example #1
0
    <h1><?php 
echo Html::encode($this->title);
?>
</h1>

    <p>
        <?php 
echo Html::a(Yii::t('app', 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']);
?>
        <?php 
echo Html::a(Yii::t('app', 'Delete'), ['delete', 'id' => $model->id], ['class' => 'btn btn-danger', 'data' => ['confirm' => Yii::t('app', 'Are you sure you want to delete this item?'), 'method' => 'post']]);
?>
    </p>

    <?php 
/*echo DetailView::widget([
      'model' => $model,
      'attributes' => [
          'id',
          'name',
          'message',
          'outlet_1',
      ],
  ])*/
?>
</div>
<hr>
<?php 
echo app\modules\frontend\modules\block_1458162252\components\BaseWidget::widget(['message' => $model->message, 'outlet_1' => $model->outlet_1]);
Example #2
0
<div class="block_1458162252-default-index">
    <h1><?php 
echo $this->context->action->uniqueId;
?>
</h1>
    <p>
        This is the view content for action "<?php 
echo $this->context->action->id;
?>
".
        The action belongs to the controller "<?php 
echo get_class($this->context);
?>
"
        in the "<?php 
echo $this->context->module->id;
?>
" module.
    </p>
    <p>
        You may customize this page by editing the following file:<br>
        <code><?php 
echo __FILE__;
?>
</code>
    </p>
</div>

<?php 
echo app\modules\frontend\modules\block_1458162252\components\BaseWidget::widget(['message' => 'Good morning']);