Mohsen
Mohsen

Reputation: 1422

how create frontend and backend structure for modules in yii2?

The structure im looking for is like:

modulesName
   frontend
     controllers
     models
     views
     web

   backend
     controllers
     models
     views
     web

is that possible ? we should use basic or advance ?

Upvotes: 0

Views: 219

Answers (1)

Ziya Vakhobov
Ziya Vakhobov

Reputation: 465

Yes you can. But if you need this kind of structure it is good to use Yii2-advanced template. Or if you want you can use also starter kit by trntv here is link. It has lots of features that will easy your development.

What if you want it as module, you need basic template but you will not have separate web folders. Just use Gii to create module. Instructions how to work and create modules are given here.

Upvotes: 0

Related Questions