Yii Framework Forum: Yii-Environment - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii-Environment Predefine configurations for use in different environments Rate Topic: -----

#1 User is offline   marcovtwout 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 78
  • Joined: 16-September 10
  • Location:Delft, NL

Posted 14 March 2011 - 03:45 AM

Original sources/based on: http://www.yiiframew...oc/cookbook/73/
Link to extension: http://www.yiiframew...ii-environment/

Introduction
Using this you can predefine configurations for use in different environments, like development, testing, staging and production.

The main config is extended to include the Yii path and debug flags. There are mode_x.php files to override and extend the main config for specific implementation. You can optionally use a local config to override these preset configurations, for example when using multiple development instalations with different paths, db's.

This class was designed to have minimal impact on the default Yii generated files. Minimal changes to the index/bootstrap and existing config files are needed.

The Environment is determined by $_SERVER[YII_ENVIRONMENT], created by Apache's SetEnv directive. This can be modified in getMode().

Feedback please :)
I would like to get some feedback on it, for example: is it clear to use? does this extension fit your development workflow? can you do everything you could do in the normal config file? are there any features missing?
Yii-Environment Extension - Predefine configurations for use in different environments, like development, testing, staging and production.
NetBeans IDE and Yii projects - Short directions and general tips for managing a Yii application in NetBeans IDE
0

#2 User is offline   marcovtwout 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 78
  • Joined: 16-September 10
  • Location:Delft, NL

Posted 24 March 2011 - 04:05 AM

View Postmarcovtwout, on 14 March 2011 - 03:45 AM, said:

Feedback please :)
I would like to get some feedback on it, for example: is it clear to use? does this extension fit your development workflow? can you do everything you could do in the normal config file? are there any features missing?


Just a bump :)
Yii-Environment Extension - Predefine configurations for use in different environments, like development, testing, staging and production.
NetBeans IDE and Yii projects - Short directions and general tips for managing a Yii application in NetBeans IDE
0

#3 User is offline   marcovtwout 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 78
  • Joined: 16-September 10
  • Location:Delft, NL

Posted 15 September 2011 - 05:04 AM

Updated my extension to support console applications :)
Yii-Environment Extension - Predefine configurations for use in different environments, like development, testing, staging and production.
NetBeans IDE and Yii projects - Short directions and general tips for managing a Yii application in NetBeans IDE
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users