Skip to content

Commit

Permalink
start
Browse files Browse the repository at this point in the history
  • Loading branch information
teo2022 committed Jun 13, 2017
1 parent 992a6ba commit 0ed389a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ composer require artem163397/my_crud "dev-master"
if (YII_ENV_DEV) {
// configuration adjustments for 'dev' environment
$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = [
$config['modules']['debug'] = [
'class' => 'yii\debug\Module',
// uncomment the following to add your IP if you are not connecting from localhost.
//'allowedIPs' => ['127.0.0.1', '::1'],
Expand Down
5 changes: 4 additions & 1 deletion views/_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@

<div class="<?= Inflector::camel2id(StringHelper::basename($generator->modelClass)) ?>-form">

<?= "<?php " ?>$form = ActiveForm::begin(); ?>
<?= "<?php " ?>$form = ActiveForm::begin([
'id' => 'order-form',
'enableAjaxValidation' => true,
]); ?>

<?php foreach ($generator->getColumnNames() as $attribute) {
if (in_array($attribute, $safeAttributes)) {?>
Expand Down

0 comments on commit 0ed389a

Please sign in to comment.