Commit 42888afe by Edward Simarmata

yang baru lagi

parent d7c88d5c
......@@ -6,6 +6,9 @@ use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use common\models\LoginForm;
use app\models\Sekolah;
use app\models\SekolahSearch;
use app\controller\SiswaController;
/**
* Site controller
......@@ -114,23 +117,31 @@ class SiteController extends Controller
}
public function actionAbout() {
$searchModel = new SekolahSearch();
$dataProviderTK = $searchModel->search('TK');
$dataProviderSD = $searchModel->search('SD');
$dataProviderSMP = $searchModel->search('SMP');
return $this->render('about',
[
'searchModel' => $searchModel,
'dataProviderTK' => $dataProviderTK,
'dataProviderSD' => $dataProviderSD,
'dataProviderSMP' => $dataProviderSMP,
]
);
}
public function actionDaftar_SMP() {
public function actionDaftarTk() {
return $this->render('daftar_SMP',
return $this->render('daftar_TK',
[
]
);
}
public function actionTest()
{
return $this->render('test');
......
......@@ -126,7 +126,7 @@ $this->registerJs($script, \yii\web\View::POS_END);
<div class="panel-body">
<?php
echo GridView::widget([
'dataProvider' => $dataProvider,
'dataProvider' => $dataProviderTK,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment