Question

I expect Gii module generator generate for 'admin' as follows:

modules/admin/AdminModule.php
modules/admin/components
modules/admin/controllers/DefaultController.php
modules/admin/messages
modules/admin/models
modules/admin/views/default/index.php
modules/admin/views/layouts

but it just generate list below:

modules\admin\AdminModule.php
modules\admin\controllers\DefaultController.php
modules\admin\views\default\index.php

Why? How could I make it generate rest of those? My first list expectation is according to "Web Application Development with Yii and PHP by Jeffrey Winesett" book.

Était-ce utile?

La solution

That book was published a while ago (possibly for v1.0), so things will have changed since. What you are running into may be a good example of that.

Autres conseils

IT appears that the missing items are folders without any content. I may be wrong but it makes sense.

Best wishes.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top