Hi All
When I try to filter a view with either findAllByPk or just using the array as a search filter on the ID I get FatalErrors
Here’s my code, neither of the commented code works:
public function actionDashboard()
{
$model = Complexs::model()->findAllByPk(Yii::app()->session['cID']);
//$model = Complexs::model(Yii::app()->session['cID']);
//$model->ID=Yii::app()->session['cID'];
//$model->search();
$this->render('dashboard',array(
'model'=>$model,
));
}