Or what I like to call “frontend environments”. Before reading on, please note that this method depends on using the Yii2 authManager with Role Based Access Control (RBAC) and the yii2-app-advanced template. “Environments” are located inside:frontend/environments/{role_name}/ This path contains the controllers and views directories, etc. First step is to “configure” the environments. The array key […]