Yii Model Tutorials

CDbCriteria In Yii

CDbCriteria is the one of best support in yii framework. CDbCriteria is used to assign the values or property in query. Using cdbcriteria property we can assign condition, order, limit, scopes etc for query. It have some methods to apply condition for model or sql table like addCondition(), addInCondition() etc .aliasConditionDistinctGroupHavingJoinLimit, OffsetOrder byParamsscopesSELECTtogetherWithaddBetweenConditionCompareaddConditionaddInConditionaddNotInConditionaddSearchCondition Note: $model is the object of 'post' table classaliasthe alias name of the table $criteria=new CDbCriteria; $criteria->alias = […]... Read More »