随笔分类 - Yii
摘要:参考: http://www.cnblogs.com/x3d/p/php_auto_prepend_file.html
阅读全文
摘要://命名空间 use app\components\HttpException; model废除方法relations(),scopes() Yii::app() 修改成 Yii::$app $this->render('/' . $this->id, array('orders' => $orderSearch)) 修改成 return $th...
阅读全文
摘要:Yii常用执行SQL方法 ====================================================== ====================================================== //执行SQL:createCommand query(); //select queryAll(); queryRow(); queryScal...
阅读全文