bananabb/cakephp-querylog

用于 cakephp 打印查询日志

安装: 13

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 0

公开问题: 0

类型:cakephp-plugin

dev-master 2018-04-12 03:53 UTC

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