예제 #1
0
 public function run()
 {
     if ($this->requiresPjax()) {
         Alert::widget();
         /// We do render breadcrumbs only for the main outer PJAX block
         if ($this->id === Yii::$app->params['pjax']['id']) {
             $this->addBreadcrumbs();
         }
     }
     parent::run();
 }
예제 #2
0
    echo $this->subtitle;
    ?>
</small>
                <?php 
}
?>
            </h1>
            <?php 
echo Breadcrumbs::widget(['homeLink' => ['label' => '<i class="fa fa-dashboard"></i> ' . Yii::t('app', 'Home'), 'url' => '/'], 'encodeLabels' => false, 'tag' => 'ol', 'links' => $this->breadcrumbs->getItemsArray()]);
?>
        </section>

        <!-- Main content -->
        <section class="content">
            <?php 
echo Alert::widget();
?>
            <?php 
echo $content;
?>
        </section>
        <!-- /.content -->
    </aside>
    <!-- /.right-side -->
</div>
<!-- ./wrapper -->

<?php 
$this->endBody();
?>
</body>