bananabb / cakephp-querylog
For cakephp print out query log
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=5.3.0
- composer/installers: *
This package is not auto-updated.
Last update: 2025-06-28 00:07:22 UTC
README
This project for help you to print out the query of method in cakephp.
Installation
This repository should be installed in the same way as any other plugin.
cd <work folder>/app/Plugin
git clone git://github.com/BananaBb/cakephp-querylog.git QueryLog
composer
This plugin on the Packagist.
composer require bananabb/cakephp-querylog
Sample Code
Add plugin load to your project
cd <work folder>/app/Config/bootstrap.php
CakePlugin::load('QueryLog');
Usage of this function
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