https://github.com/daxslab/yii2-coreui
CoreUI layout for Yii2 based on coreui template
https://github.com/daxslab/yii2-coreui
assets coreui yii2
Last synced: 5 months ago
JSON representation
CoreUI layout for Yii2 based on coreui template
- Host: GitHub
- URL: https://github.com/daxslab/yii2-coreui
- Owner: daxslab
- Created: 2019-06-08T13:53:15.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-16T19:48:35.000Z (almost 6 years ago)
- Last Synced: 2025-01-25T15:02:05.759Z (over 1 year ago)
- Topics: assets, coreui, yii2
- Language: PHP
- Homepage:
- Size: 2.93 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Yii2 CoreUI
===============
[](https://packagist.org/packages/daxslab/yii2-coreui)
[](https://packagist.org/packages/daxslab/yii2-coreui)
[](https://packagist.org/packages/daxslab/yii2-coreui)
[](https://packagist.org/packages/daxslab/yii2-coreui)
Yii2 extension includind the base layout for CoreUI admin dashboard
Installation
------------
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist daxslab/yii2-coreui "*"
```
or add
```
"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:
```html
beginContent('@daxslab/coreui/views/layouts/main.php') ?>
= $content ?>
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.