Reputation: 622
I have a project that need some thing more than default yii folder structures.
In yii2 you have something like below to separate backend and fronend of your project.
advanced
but i need something else.
In my project there is this parts:
1-backend
2-frontend
3-partners
and i want some new structure like this:
Upvotes: 1
Views: 651
Reputation: 1667
Add to common/config/bootstrap.php
<?php
Yii::setAlias('common', dirname(__DIR__));
//Yii::setAlias('admin', dirname(dirname(__DIR__)) . '/admin');
Yii::setAlias('api', dirname(dirname(__DIR__)) . '/api');
Yii::setAlias('frontend', dirname(dirname(__DIR__)) . '/frontend');
Yii::setAlias('backend', dirname(dirname(__DIR__)) . '/backend');
Yii::setAlias('console', dirname(dirname(__DIR__)) . '/console');
Upvotes: 2