Ejemplo n.º 1
0
 /**
  * Results page
  * @param $hash
  * @return string
  */
 public function actionResults($hash)
 {
     $dataProvider = new ActiveDataProvider(['query' => Image::findSimilar($hash, 12)]);
     return $this->render('results', ['dataProvider' => $dataProvider]);
 }