Yii2.0 – 打印 SQL 语句
     发布在:PHP      浏览:40      评论:0 条评论
echo $model = Manager::find() -> asArray() -> createCommand() -> getRawSql();
exit;
$model -> all();

做个笔记,省的再去百度

    Responses