/** * Lists all Gallery models. * @return mixed */ public function actionIndex() { $searchModel = new GallerySearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', compact('searchModel', 'dataProvider')); }
<span></span>' . $model->gallery_name . '</div> </div> <p>' . $model->gallery_description . '</p> </div> </div> </div>'; } ?> <!-- Main Images for the School's Gallery --> <ul id="portfolio-grid" class="thumbnails row"> <?php $searchModel = new GallerySearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); foreach ($dataProvider->models as $model) { echo '<li class="span4 mix web"> <div class="thumbnail"> <img src="' . $model->gallery_picture . '" alt="project ' . $model->id . '"> <a href="#single-project" class="more show_hide" rel="#slidingDiv' . $model->id . '"> <i class="icon-plus"></i> </a> <h3>' . $model->gallery_name . '</h3> <div class="mask"></div> </div> </li>'; } ?>