ContactController::actionFaqView PHP Method

actionFaqView() public method

public actionFaqView ( $id )
$id
    public function actionFaqView($id)
    {
        $id = (int) $id;
        if (empty($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', ['model' => $model]);
    }