项目作者: daxslab

项目描述 :
CoreUI layout for Yii2 based on coreui template
高级语言: PHP
项目地址: git://github.com/daxslab/yii2-coreui.git
创建时间: 2019-06-08T13:53:15Z
项目社区:https://github.com/daxslab/yii2-coreui

开源协议:

下载


Yii2 CoreUI

Latest Stable Version
Total Downloads
Latest Unstable Version
License

Yii2 extension includind the base layout for CoreUI admin dashboard

Installation

The preferred way to install this extension is through composer.

Either run

  1. php composer.phar require --prefer-dist daxslab/yii2-coreui "*"

or add

  1. "daxslab/yii2-coreui": "*"

to the require section of your composer.json file.

Usage

Make your module or controller layout to be @daxslab/coreui/views/layouts/main.php by modifiying the layout attribute.

Also you can make your @app/views/layouts/main.php to look like:

  1. <?php $this->beginContent('@daxslab/coreui/views/layouts/main.php') ?>
  2. <?= $content ?>
  3. <?php $this->endContent() ?>

Consider that there a a group of variables at the beginning of @daxslab/coreui/views/layouts/main.php that you can set
to specify brand icons, menu contents, etc.