Understanding Backend and Frontend

So, I have worked well with YII 1.* and all was good. The basic template of YII2 doesn’t have that much difference from YII 1. However I decided to use the advanced template, then I found that there was \frontend and \backend.

Problem is, they have almost the same directory structure, which isn’t a problem at all. :rolleyes: sooo…if i am going to write my controllers, and model and views in \backend, but these are the same controllers and models that product users will access, do i have to manually copy them back to \frontend when that time comes to go to production mode?


Shared classes should go into the common folder.

There’s some useful information here in the guide.