Пример #1
0
 private function _renderComments()
 {
     return $this->renderFile(\Yii::getAlias('@simplecomment') . '/views/comments.php', ['query' => Comment::find()->where('relModelClass = :relModelClass AND relModelId = :relModelId', ['relModelClass' => get_class($this->model), 'relModelId' => $this->model->id]), 'viewParams' => ['author' => $this->author, 'authorNameAttribute' => $this->authorNameAttribute, 'authorAvatarAttribute' => $this->authorAvatarAttribute, 'authorAvatarFunction' => $this->authorAvatarFunction, 'authorAvatarWidth' => $this->authorAvatarWidth !== null ? $this->authorAvatarWidth : null, 'authorAvatarHeight' => $this->authorAvatarHeight !== null ? $this->authorAvatarHeight : null]]);
 }