PHP code example of deluxcms / sqldebug
1. Go to this page and download the library: Download deluxcms/sqldebug library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
deluxcms / sqldebug example snippets
写公共收集控制器,其他控制器继承使用即可
class CommonController extends \yii\web\Controller
{
public function afterAction($action, $result)
{
Yii::$app->sqldebug->triggerSave($this, $action);
return parent::afterAction($action, $result);
}
}