cornernote/yii2-ace
最新稳定版本:1.0.0
Composer 安装命令:
composer require cornernote/yii2-ace
包简介
Ace admin theme for Yii2.
README 文档
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]));
统计信息
- 总下载量: 1.39k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD
- 更新时间: 2015-06-19