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.

Was it helpful?

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.

OTHER TIPS

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

Best wishes.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top