/** * Lists all Grade models. * @return mixed */ public function actionIndex() { $searchModel = new GradeSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]); }
ga('send', 'pageview'); </script> <div class="section secondary-section " id="portfolio"> <div class="triangle"></div> <div class="container"> <div class=" title"> <h1>Online Grade Viewer</h1> <p></p> </div> <!-- Details for School Gallery --> <?php $searchModel = new GradeSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); foreach ($dataProvider->models as $model) { echo '<div id="single-project"> <div id="slidingDiv' . $model->id . '" class="toggleDiv row-fluid single-project"> <div class="span6"> </div> <div class="span6"> <div class="project-description"> <div class="project-title clearfix"> <h1>' . $model->grade_subject . '</h3> <span class="show_hide close"> <i class="icon-cancel"></i> <h2>' . $model->grade_quarter_number . '</h3> <span class="show_hide close">