Add comment to end of sql.
- Yii2
- PHP 5.4+
- MySQL
The preferred way to install this extension is through composer.
php composer.phar require --prefer-dist scsidisk/yii2-sqlcommnet "*"
Once the extension is installed, simply use it in your code.
add follow code to your db setting.
'db' => [
'class' => 'scsidisk\yii2\sqlcomment\CMConnection',
'dsn' => '',
'password' => '',
'username' => '',
'charset' => '',
],