摘要:
一、查询数据集合1、$admin=Admin::model()->findAll($condition,$params);该方法是根据一个条件查询一个集合,如: findAll("username=:name",array(":name"=>$username));2、$admin=Admin::model()->findAllByPk($postIDs,$condition,$params);findAllByPk($id,"name like ':name' and age=:age",array 阅读全文
摘要:
{full URL}1http://localhost/yii_lab/index.php?r=lab/urlBoyLeeTest<br/>{Yii::app()->request->hostInfo}1echo(Yii::app()->request->hostInfo);2//out =>http://localhost{createUrl()}1echo$this->createUrl('urlBoyLeeTest');2//out => /yii_lab/index.php?r=lab/urlBoyLeeTest{c 阅读全文