Ejemplo n.º 1
0
<?php

/* @var $this yii\web\View */
use app\components\NewsList;
$this->title = 'Кировская межрайонная больница';
?>
<div class="site-index">

    <div class="row">

        <div class="col-sm-8">
            <div class="medicine">
                <?php 
echo \app\components\Block::widget(['slug' => 'main']);
?>
            </div>
        </div>

    </div>

    <?php 
echo NewsList::widget();
?>

</div>
Ejemplo n.º 2
0
/* @var $this yii\web\View */
/* @var $model app\models\Review */
/* @var $reviews array app\models\Review */
/* @var $review app\models\Review */
$this->title = 'Отзывы';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="review-index">

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

    <?php 
echo \app\components\Block::widget(['slug' => 'review']);
?>

    <?php 
foreach ($reviews as $review) {
    ?>
        <div class="well well-sm">
            <?php 
    if ($review->subject) {
        ?>
                <h4><?php 
        echo $review->subject;
        ?>
</h4>
            <?php 
    }