Skip to content

Instantly share code, notes, and snippets.

@DeaVenditama
Created December 5, 2019 08:20
Show Gist options
  • Save DeaVenditama/b161582ce63dcf72e108f9ecb30227c3 to your computer and use it in GitHub Desktop.
Save DeaVenditama/b161582ce63dcf72e108f9ecb30227c3 to your computer and use it in GitHub Desktop.
views/layouts/content.php
<?php
use yii\widgets\Breadcrumbs;
use dmstr\widgets\Alert;
?>
<div class="content-wrapper">
<?=
Breadcrumbs::widget(
[
'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
]
) ?>
<section class="content">
<?= Alert::widget() ?>
<?= $content ?>
</section>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment