Exemplo n.º 1
0
 /**
  * @return string
  */
 public function run()
 {
     if (!$this->_initError) {
         return $this->render('index', ['min' => $this->_ratingModule->min, 'max' => $this->_ratingModule->max, 'step' => $this->_ratingModule->step, 'recordId' => $this->recordId, 'ratingStats' => RatingStat::findAll(['record_id' => $this->recordId])]);
     }
     return \Yii::t("rating", "Unknown recordId");
 }