Best practice to seperate common module views by application ID

Hi all,

as I’ve stated yesterday in my first post (still no answer :() I’m new to Yii and in a way also to OOP. Till now I’ve been using CI for around 5 years, but comparing CI and Yii in terms of OOP is like day and night :)

I’m using Yii2-user module from dektrium as a common module for backend and frontend application. I wonder now what is the best way to have separate views for each application? For instance the login view is a bit different then the one for backend. Also for backend I won’t have any registration, lost password and other functionalities so I even don’t want registration controller to be accessible from backend.

What is the best practice for dealing with this kind of situations?

Thanks! Hope I get some answer today :)