FeedBack::model PHP Метод

model() публичный статический Метод

Returns the static model of the specified AR class.
public static model ( string $className = __CLASS__ ) : FeedBack
$className string
Результат FeedBack the static model class
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

Usage Example

Пример #1
0
 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));
 }
All Usage Examples Of FeedBack::model