Skip to content

Commit

Permalink
Fix namespace error
Browse files Browse the repository at this point in the history
  • Loading branch information
fgh151 committed Mar 24, 2016
1 parent 3b76025 commit da876e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fgh151/yii2-params",
"version": "1.0.1",
"version": "1.0.2",
"description": "Yii2 params files managment",
"keywords": ["yii2", "params"],
"homepage": "http://openitstudio.ru",
Expand Down
12 changes: 6 additions & 6 deletions views/main/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

use yii\widgets\ActiveForm;
use yii\helpers\Html;
use common\modules\params\Module;
use \fgh151\modules\params\Module;

/* @var $model common\modules\params\models\ParamsModel */
/* @var $model \fgh151\modules\params\models\ParamsModel */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="app_params_settings-main-index">
<h1><?= $model->paramsFilePath ?></h1>
<?php $form = ActiveForm::begin();
foreach ($model->attributes() as $attribute):
echo $form->field($model,$attribute);
endforeach;
echo Html::submitButton(Module::t('app','Save settings'),['class'=>'btn btn-success']);
foreach ($model->attributes() as $attribute):
echo $form->field($model,$attribute);
endforeach;
echo Html::submitButton(Module::t('app','Save settings'),['class'=>'btn btn-success']);
?>
<?php ActiveForm::end()?>
</div>

0 comments on commit da876e6

Please sign in to comment.