-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
73 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: yidashi | ||
* Date: 16/7/11 | ||
* Time: 上午11:47 | ||
*/ | ||
|
||
namespace backend\helpers; | ||
|
||
|
||
class Config | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
/** | ||
* author: yidashi | ||
* Date: 2016/1/11 | ||
* Time: 18:01. | ||
*/ | ||
use yii\helpers\Html; | ||
use yii\widgets\ActiveForm; | ||
|
||
$this->title = '网站设置'; | ||
$this->params['breadcrumbs'][] = $this->title; | ||
?> | ||
<div class="article-index"> | ||
<?php | ||
$form = ActiveForm::begin(); | ||
echo \yii\grid\GridView::widget([ | ||
'dataProvider' => $dataProvider, | ||
'layout' => '{items}', | ||
'columns' => [ | ||
'desc', | ||
[ | ||
'attribute' => 'value', | ||
'value' => function($model, $key, $index) use ($form) { | ||
return call_user_func_array([$form->field($model, "[$index]value")->label(false), $model->inputType['name']], $model->inputType['params']); | ||
}, | ||
'format' => 'raw' | ||
], | ||
'name' | ||
] | ||
]); | ||
|
||
echo Html::submitButton('提交', ['class' => 'btn btn-primary']); | ||
ActiveForm::end(); | ||
?> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: yidashi | ||
* Date: 16/7/11 | ||
* Time: 上午11:29 | ||
*/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: yidashi | ||
* Date: 16/7/11 | ||
* Time: 下午1:49 | ||
*/ |