定制 cakephp-plugin/sledgehammer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

cakephp-plugin/sledgehammer

Composer 安装命令:

composer require cakephp-plugin/sledgehammer

包简介

CakePHP plugin: Use the Sledgehammer Framework as a library in a CakePHP 2.x project.

README 文档

README

Intergrates the Sledgehammer Framework into an CakePHP 2.x project

1. Installation with Composer

composer.phar require sledgehammer/cakephp-plugin

Manual installation

Add the plugin

Place this plugin into the "app/Plugin/Sledgehammer/" folder. git submodule add git://github.com/sledgehammer/CakePHP-Sledgehammer-Plugin.git app/Plugin/Sledgehammer

Add Sledgehammer

Place the "sledgehammer" folder in the "app/Vendor/" folder: git submodule add git://github.com/sledgehammer/core.git app/Vendor/sledgehammer/core

Your project folder should look like this:

  • app/
    • composer.json
    • Plugin/
      • Sledgehammer/
        • Readme.md (this file)
        • ...
    • Vendor/
      • sledgehammer/
        • core/
  • lib/
    • Cake/

2. Activate plugin

Modify your app/Config/bootstrap.php to include:

// define current environent in code or add "SetEnv APPLICATION_ENV development" to your httpd.conf or .htaccess
define('ENVIRONMENT', 'development');
// Override the e-mailaddres to whom the error-reports are sent in production mode or rely on the SERVER_ADMIN in httpd.conf/.htaccess
$_SERVER['SERVER_ADMIN'] = 'you@example.com';
CakePlugin::load('Sledgehammer', array('bootstrap' => true));

3. Activate goodies

Sledgehammer Database

Upgrade your datasource in APP/Config/database.php from Database/Mysql into Sledgehammer.Database/SledgehammerMysql

Default to UTF-8 encoding and reports sql warnings & notices.

Sledgehammer statusbar

Add the statusbar element just before the </body> tag in your /Layout/default.ctp.

<?php echo $this->element('statusbar', array(), array('plugin' => 'Sledgehammer')); ?>

统计信息

  • 总下载量: 668
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: CC-BY-SA-3.0
  • 更新时间: 2012-10-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固