public static function model($className = __CLASS__)
{
return parent::model($className);
}
public function actionFaqView($id) { $id = (int) $id; if (!$id) { throw new CHttpException(404, Yii::t('FeedbackModule.feedback', 'Page was not found!')); } $model = FeedBack::model()->answered()->faq()->findByPk($id); if (null === $model) { throw new CHttpException(404, Yii::t('FeedbackModule.feedback', 'Page was not found!')); } $this->render('faqView', array('model' => $model)); }