Wiki

Articles tagged with "config", sorted by viewsX
Displaying 11-15 of 15 result(s).

Setting static modules' properties in config

Created about a year ago by Alexander PalamarchukTips0 comments – viewed 5,094 times – ( +2 / -2 ) – version 1.1
You may face a situation when you need to access to a configurable module's property from everywhere and you don't have an instance of this module's class.
tags: config, module

Making friends' configs, DB credentials and paths with version control

Created about a year ago by Alexander PalamarchukTips1 comment – viewed 4,830 times – ( +2 / -1 ) – version 1.1
In many cases developers of one project use their own local environments for coding. There may be a common test platform and, of course, production. All these environments usually have different DB credentials and directory structures (first of all, path to YII framework directory). Another feature is debugging. It's convenient to turn it on for local environments, eventually - on the test server and never (generally speaking) - on the production.
tags: config

Configuring Yii to run on both Windows and OSX

Created 6 months ago by trondHow-tos2 comments – viewed 2,289 times – ( +2 ) – version 1.1
If you develop your Yii project on both Windows and Mac, there can be a problem setting up the configuration unless the configurations for both system are identical. On my machines I have the following configurations:
tags: config

Multiple Enviroments - Only with files

Created 5 months ago by Ramiro Anacona MenesesTips0 comments – viewed 2,089 times – ( -6 ) – version 1.1
The idea of ‚Äč‚Äčthis wiki is to show how to have a development environment .

How to store array/widget configuration to the database with config validation rules

Created 3 months ago by Kartik VTutorials0 comments – viewed 1,485 times – ( +26 / -4 ) – version 2.0
You may have scenarios, where you want to store a specific array configuration to the database. A classic example could be saving Yii widget configuration to the database and then retrieving it at runtime, with dynamic parameters set. This wiki discusses one of the approaches to do this. Let's consider you have something like the NavBar configuration below to store in the db: