soenkelange/live_cake 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

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

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-11-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固