M
M
mikamak2016-01-28 14:22:35
Yii
mikamak, 2016-01-28 14:22:35

Make several front-end applications on one installation of the framework (multi frontend, multi frontend)?

I want to make more than one front-end application in Advanced Template.
1) I duplicate the frontend folder in frontend2,
2) I change all occurrences of "frontend" to "frontend2" in it,
3) I add an alias to frontend2\config\bootstrap.php file Yii::setAlias('frontend', dirname(dirname(__DIR__ )) .'/frontend2');
4) I hang the domain on the frontend2\web home directory.
The engine does not see the SiteController controller.
If I forcibly include a file with a controller in bootstrap.php, then in the future the layout file does not see the AppAsset class, etc. Moreover, the classes from the standard frontend are visible.
How can I properly set up work with additional frontends?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Makarov, 2016-01-28
@mikamak

namespace look carefully, which is specified in the config and yours for the controller.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question