CakePHPで直前のクエリをチェック

App::import('Model', 'ConnectionManager');
$db = ConnectionManager::getDataSource('default');
$this->log($db->getLog(), LOG_DEBUG);

こんな感じで。

thanks →@deeeki


Tags:

Comments are closed.