Exemplo n.º 1
0
            <div class="pull-left info">
              <p><?php 
    echo $user->identity->name;
    ?>
</p>
              <!-- Status -->
              <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
            </div>
          </div>
          <?php 
}
?>

          <!-- Sidebar Menu -->
          <?php 
echo AdminMenu::widget();
?>
        <!-- /.sidebar -->
      </aside>

      <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <?php 
echo Yii::$app->toolbar->render();
?>
        </section>

        <!-- Main content -->
        <section class="content">
Exemplo n.º 2
0
 /**
  * Remembers whether the menu is collapsed.
  *
  * @param int $collapsed whether the menu is collapsed.
  */
 public function actionCollapseMenu($collapsed)
 {
     AdminMenu::setIsCollapsed($collapsed);
 }