2017 © Pedro Peláez
 

cakephp-plugin cakephp-querylog

For cakephp print out query log

image

bananabb/cakephp-querylog

For cakephp print out query log

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Query Log for CakePHP

This project for help you to print out the query of method in cakephp., (*1)

Installation

This repository should be installed in the same way as any other plugin., (*2)

cd <work folder>/app/Plugin
git clone git://github.com/BananaBb/cakephp-querylog.git QueryLog

composer

This plugin on the Packagist., (*3)

composer require bananabb/cakephp-querylog

Sample Code

Add plugin load to your project, (*4)

cd <work folder>/app/Config/bootstrap.php
CakePlugin::load('QueryLog');

Usage of this function, (*5)

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

Author

BananaBb, (*6)

The Versions

12/04 2018

dev-master

9999999-dev https://github.com/BananaBb/cakephp-querylog

For cakephp print out query log

  Sources   Download

MIT

The Requires

 

cakephp query lastquery