Skip to content

Commit 4da9b48

Browse files
committed
Update README.md
1 parent 53ba98e commit 4da9b48

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,36 @@ The following widgets are currently available:
6363
* ActiveForm
6464
* ActiveField
6565
* SwitchButton
66+
* GridView with ActionColumn
67+
* DetailView
6668

6769
These widgets are planned for development:
6870

69-
* GridView with ActionColumn and DataColumn
7071
* Collection
7172
* Pagination
7273
* Modal
7374
* Toast
7475
* Collapsible
76+
77+
## Gii Support
78+
79+
If you are creating your CRUD controller and view files using Gii you can get materialized view files by integrating the adapted Gii templates.
80+
81+
```php
82+
// @app/config/main-local.php
83+
84+
$config['modules']['gii'] = [
85+
'class' => 'yii\gii\Module',
86+
'allowedIPs' => ['127.0.0.1', '::1', '192.168.0.*', '192.168.178.20'],
87+
'generators' => [
88+
'crud' => [
89+
'class' => 'yii\gii\generators\crud\Generator',
90+
'templates' => [ // setting materializecss templates
91+
'materializecss' => '@vendor/macgyer/yii2-materializecss/src/gii-templates/generators/crud/materializecss',
92+
]
93+
]
94+
],
95+
];
96+
```
97+
98+
You can copy those templates to any location you wish for further customization. Make sure you adapt the path accordingly in your config.

0 commit comments

Comments
 (0)