getherbert / herbert

The WordPress Plugin Framework:
http://getherbert.com/
632 stars 94 forks source link

HERBERT_ENV #101

Closed abdelkrimdev closed 8 years ago

abdelkrimdev commented 8 years ago

hello where can i define the HERBERT_ENV variable ?

dcalvert commented 8 years ago

There are a few ways. A simple one would be to set a variable in your .htaccess file, such as:

SetEnv app_env production

and then grab that in your plug-in by adding:

define('HERBERT_ENV', getenv('app_env'));

in the plugin.php file.

abdelkrimdev commented 8 years ago

thanks a lot :)

jeremyzahner commented 8 years ago

@onnimonni This one should be labeled question and be closed.