What is wrong with the statement,in Yii?
问题 I have a folowing code in my controller , public function actionViewJob() { $user_id = Yii::app()->session['user_id']; /* For User Authentication */ if (Yii::app()->user->getId() === null) $this->redirect(array('site/login')); /* For User Authentication */ $model=ViewJob::model()->findAll(array('user_id'=>Yii::app()->user->id)); $params = array('model' => $model, ); $this->render('viewjob', $params); I am getting error /* Property "CDbCriteria.user_id" is not defined. */ but when I am using