cornernote / yii2-ace
Ace admin theme for Yii2.
Installs: 1 385
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 1
Open Issues: 1
Type:yii2-extension
Requires
- bower-asset/cornernote-ace: *
- cebe/yii2-gravatar: 1.*
- rmrevin/yii2-fontawesome: ~2.9
- yiisoft/yii2: *
- yiisoft/yii2-bootstrap: *
Requires (Dev)
- phpunit/phpunit: 4.*
- scrutinizer/ocular: ~1.1
This package is auto-updated.
Last update: 2024-12-20 09:56:31 UTC
README
Ace admin theme for Yii2.
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require cornernote/yii2-ace "*"
or add
"cornernote/yii2-ace": "*"
to the require
section of your composer.json
file.
Add the following to your AppAsset.php
:
class AppAsset extends AssetBundle { public $depends = [ 'cornernote\ace\web\AceAsset', ]; }
Example Layout
An example Yii2 layout exists at views/layouts/main.php
.
You can use it directly by pasting the following into your views/layouts/main.php
:
use app\assets\AppAsset;
AppAsset::register($this);
$viewPath = '@vendor/cornernote/yii2-ace/src/views/layouts';
$regex = '|(\\' . DIRECTORY_SEPARATOR . '[^\\' . DIRECTORY_SEPARATOR . ']*\\' . DIRECTORY_SEPARATOR . '[^\\' . DIRECTORY_SEPARATOR . ']*\.php)$|';
preg_match($regex, __FILE__, $matches);
require(Yii::getAlias('@vendor/cornernote/yii2-ace/src/views' . $matches[1]));