Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sadispen
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Edward Simarmata
sadispen
Commits
42888afe
Commit
42888afe
authored
Apr 30, 2018
by
Edward Simarmata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
yang baru lagi
parent
d7c88d5c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
SiteController.php
backend/controllers/SiteController.php
+15
-4
about.php
backend/views/site/about.php
+1
-1
No files found.
backend/controllers/SiteController.php
View file @
42888afe
...
...
@@ -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
actionDaftar
Tk
()
{
return
$this
->
render
(
'daftar_
SMP
'
,
return
$this
->
render
(
'daftar_
TK
'
,
[
]
);
}
public
function
actionTest
()
{
return
$this
->
render
(
'test'
);
...
...
backend/views/site/about.php
View file @
42888afe
...
...
@@ -126,7 +126,7 @@ $this->registerJs($script, \yii\web\View::POS_END);
<div
class=
"panel-body"
>
<?php
echo
GridView
::
widget
([
'dataProvider'
=>
$dataProvider
,
'dataProvider'
=>
$dataProvider
TK
,
'filterModel'
=>
$searchModel
,
'columns'
=>
[
[
'class'
=>
'yii\grid\SerialColumn'
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment