/**
  * Функция получения списка отзывов
  * @return string
  */
 function list_reviews()
 {
     $sync = new helpers\CackleReviewSync();
     $channel = $this->params['channel'];
     $reviews = $sync->getLocalReviews($channel);
     for ($i = 0; $i < count($reviews); $i++) {
         $this->render_review($reviews[$i]);
     }
 }
 public function actionIndex()
 {
     $sync = new CackleReviewSync();
     $sync->sync();
 }