w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Adding a common controllers directory to a yii2 project

I change controllers directory from "frontend" to "application", and added next configuration, like 'controllerNamespace' and 'controllerPath'.

For models path i added alias like this Yii::setAlias('application', your/path/ . '/application'); 'application' - it is name of directory, where your models are staying.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.