Skip to content

Commit 298b8b4

Browse files
Fix #500: Fix missing namespace in CRUD index template
1 parent b786bbb commit 298b8b4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Yii Framework 2 gii extension Change Log
44
2.2.5 under development
55
-----------------------
66

7+
- Bug #500: Fix missing namespace in CRUD index template (mohamed-nazim)
78
- Ehn #489: Added support for the `::class` constant in model generator via the `useClassConstant` setting (rhertogh)
89
- Bug #502: Setting `skipOnEmpty` to fix "trim(): Passing null to parameter" in `generators/model/Generator.php` (rhertogh)
910

src/generators/crud/default/views/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
echo "<?php\n";
1212
?>
1313

14+
use <?= $generator->modelClass ?>;
1415
use yii\helpers\Html;
1516
use yii\helpers\Url;
1617
use yii\grid\ActionColumn;

0 commit comments

Comments
 (0)