bananabb / cakephp-querylog
用于 cakephp 打印查询日志
dev-master
2018-04-12 03:53 UTC
Requires
- php: >=5.3.0
- composer/installers: *
This package is not auto-updated.
Last update: 2024-09-20 20:46:49 UTC
README
本项目可以帮助你在 cakephp 中打印方法查询。
安装
此存储库应与其他插件相同方式安装。
cd <work folder>/app/Plugin
git clone git://github.com/BananaBb/cakephp-querylog.git QueryLog
composer
此插件在 Packagist 上。
composer require bananabb/cakephp-querylog
示例代码
将插件加载到您的项目中
cd <work folder>/app/Config/bootstrap.php
CakePlugin::load('QueryLog');
此函数的使用
class ClassName extends ClassExtend
{
public $components = array('QueryLog.Logger');
.
.
.
.
$this->Logger->main(Model); // List all query in this model
$this->Logger->main(Model, SearchParamater); // List keyword search query in this model
作者
BananaBb