Wednesday, 11 September 2013

Yii: findAllByAttributes() simple example

The easiest way to using findAllByAttributes function with Yii:

$Blog = Blog::model()->findAllByAttributes(array('id'=>$BlogID));

Return : array the records found. An empty array is returned if none is found.

0 nhận xét:

Post a comment