2014-12-04 44 views

回答

1

我不知道你的條件,但嘗試在條件字段添加子查詢

$criteria = new CDbCriteria(); 
$criteria->select ='name, value'; 
$criteria->addCondition(select id from config where name = 'Yii');