CDbCriteria中的条件和绑定参数
{Code}
$criteria = new CDbCriteria(); ...... CODE ...... $criteria->condition .= ' and game_type_id =:game_type_id '; $criteria->params[':game_type_id'] = $game_type_id;
{Boy Said}
Use this method, to keep your code readable and clear, and xssless also.
留言