environmentindicator Environment Indicator will tell you exactly what your environment is

  1. Requirements
  2. Usage
  3. DEMO

Have you ever found yourself wondering if you are staring at your development, test or your production app in your browser? If you have, now you can try the AMAZING ENVIRONMENT INDICATOR. It was inspired by Drupal's Environment Indicator.

EI

Requirements

It should work with the 1.1 branch, but only tested on 1.1.7

Usage

Put it in the extensions folder. That's pretty much it ...

// by default the color is set to #006400 and the position is `left` (could be `right`)
// you wanna put it probably in your main layout file with some IF statements ...
if( YII_DEBUG )
{
  $this->widget( 'ext.environmentindicator.ei', array( 'text' => 'DEV ENVIRONMENT' ) );
}
else
{
  if( ! Yii::app()->user->isGuest )
  {
    $this->widget( 'ext.environmentindicator.ei', array( 'text' => 'PRODUCTION ENVIRONMENT', 'color' => '#f00', 'position' => 'left' ) );
  }
}

DEMO

Click here to see the Environment Indicator in action!

3 0
7 followers
409 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: imehesz
Created on: Apr 19, 2011
Last updated: 12 years ago

Downloads

show all

Related Extensions