How to use the advanced template in the shared hosting
In my opinion, almost all applications should use the advanced template, since it provides the right project structure from the very start, so as to immediately handle frontend and backend occurring in every web project.
However, we have also seen that the advanced template requires a console access to execute installation and initialization commands. So, if we have a remote hosting without this capability, it could be difficult for us to install and use Yii with the advanced template.
If we cannot add the console capability to remote hosting, we have two possibilities:
- Create the project in the local environment where we can install what we want and need; it is enough to locally install a WAMP or a LAMP distribution (based on the operating system of the hosting machine) and then launch the composer command to install Yii
- Launch the
init
command to initialize the project (it could be initialized from start in production mode so that no...