Wiki articles in category How-tos tagged with "config"

Showing 1-4 of 4 items.

Yii configuration: Dynamic & User dependent

Created 7 years ago by le_top, updated 7 years ago by le_top.

It is difficult to perform user dependent theming through a general configuration in 'main.php'. This article proposes a method to do so through a Factory that dynamically generates classes to allow delayed resolution of actual user values. This means that you can refer to values that are stored in the database through the CActiveRecord before Yii is actually loaded. The values will be fetched...

1 0
1 follower
Viewed: 10 249 times
Version: 1.1
Category: How-tos

Configuring Yii to run on both Windows and OSX

Created 7 years ago by trond, updated 7 years ago by CeBe.

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:

1 0
4 followers
Viewed: 10 579 times
Version: 1.1
Category: How-tos
Tags: config

Setting and getting systemwide static parameters

Created 10 years ago by Steve Friedl, updated 10 years ago by Steve Friedl.

Occasionally one wishes to set systemwide parameters for an application, such as a contact address for email, an application name, or setting an option that guides major behavior. Yii provides for setting of static parameters in the configuration file, and this article talks about how to do it conveniently.

11 0
12 followers
Viewed: 139 101 times
Version: 1.1
Category: How-tos
Tags: config

Moving project code outside of webroot (plus multiple project support)

Created 10 years ago by Steve Friedl, updated 10 years ago by Steve Friedl.

Yii's by-default directory organization works well enough, but there are several steps one can take that improve the security and serviceability of the system, especially in the context of multiple Yii projects on the same machine (including multiple versions of the same project).

21 1
19 followers
Viewed: 60 410 times
Version: 1.1
Category: How-tos