soenkelange/live_cake
Composer 安装命令:
composer require soenkelange/live_cake
包简介
LiveCake is a plugin for CakePHP using LiveReload
关键字:
README 文档
README
LiveCake is a plugin for CakePHP using LiveReload
##Requirements
- CakePHP >= 2.3
- LiveReload
Installation
Composer
Be sure require is present in composer.json. This will install the plugin into app/Plugin/LiveCake
{
"require": {
"soenkelange/live_cake": "*"
}
}
Enable
You need to enable the plugin in your app/COnfig/bootstrap.php file:
CakePlugin::load('LiveCake');
How to use
To use this helper add the following to you AppController:
<?php ... public $helpers = array(..., 'LiveCake.LiveReload');
This will insert <script type="text/javascript" src="http://localhost:35729/livereload.js"></script> before in the respons body.
To customize the path, you can use the helper settings:
<?php ... public $helpers = array(..., 'LiveCake.LiveReload' => array('jsPath' => 'YOUR_CUSTOM_PATH'));
统计信息
- 总下载量: 52
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-11-15