I am creating a project using Yii framework.
I have successfully separated backend and frontend following this article.
Also I am having two different login forms for backend and frontend but using same UserIdentity Component for authentication at both ends.
I want to know how I can use same controllers for both backend and frontend (using this directory structure).
The reason I want to have common controllers is that there’s only admin and delete action to which front users have no access. So having two copies of same controllers seems to be redundant.