Skip to content

vgoodvin/yii-environment-indicator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii-environment-indicator

Adds a colored strip to the side of the site informing the user which environment they are in (development, staging, production etc). Also adds ability to switch current user in two clicks.

Inspired by https://drupal.org/project/environment_indicator

Usage

Without user switcher:

void($this->widget('ext.environmentindicator.ei', array(
    'text' => 'DEV ENVIRONMENT'
)));

With user switcher:

void($this->widget('ext.environmentindicator.ei', array(
    'text' => 'DEV ENVIRONMENT',
    'users' => array(
        1 => 'User1',
        2 => 'User2',
        3 => 'User3'
    ),
    'userSwitchUrl' => '/user/switch'
)));

In last case you should manually define handler for the path specified in "userSwitchUrl"

About

Adds a colored strip to the side of the site informing the user which environment they are in (development, staging, production etc)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors