[Yii]Mencari semua data di MYSQL dengan kondisi tertentu.
Syntax MySQL
>
SELECT FROM Abc WHERE fk_id=$fk_id;
*Syntax di Yii
>
Abc::model()->findAll(array(‘condition’=>’fk_id=:fk_id’,
> ‘params’=>array(‘:fk_id ‘=>$id)));
> ‘params’=>array(‘:fk_id ‘=>$id)));