Skip to content

Commit

Permalink
Fixes yiisoft#6667 : Gii form generator rendering mistake view
Browse files Browse the repository at this point in the history
  • Loading branch information
pana1990 committed Mar 11, 2015
1 parent be86d15 commit 4b7d855
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extensions/gii/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Yii Framework 2 gii extension Change Log
2.0.4 under development
-----------------------

- no changes in this release.
- Bug #6667: Gii form generator rendering mistake view (pana1990)


2.0.3 March 01, 2015
Expand Down
2 changes: 1 addition & 1 deletion extensions/gii/generators/form/default/action.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function action<?= Inflector::id2camel(trim(basename($generator->viewName
}
}

return $this->render('<?= $generator->viewName ?>', [
return $this->render('<?= basename($generator->viewName) ?>', [
'model' => $model,
]);
}

0 comments on commit 4b7d855

Please sign in to comment.