Difference between #1 and #2 of
Setting and getting systemwide static parameters

Revision #2 has been created by Steve Friedl on Dec 28, 2010, 8:29:45 PM with the memo:

Trivial formatting fix
« previous (#1)

Changes

Title unchanged

Setting and getting systemwide static parameters

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

config

Content changed

[...]
Users with console subsystems may well wish to share these parameters between `main.php` and `config.php`, and this can be done by creating a shared, common include file:

```php
// in protected/config/_common.inc
$commonParams = array(
'email'
      => 'steve@unixwiz.net',
'someOption' => true
);


// in protected/config/main.php
[...]
11 0
12 followers
Viewed: 146 270 times
Version: 1.1
Category: How-tos
Tags: config
Written by: Steve Friedl
Last updated by: Steve Friedl
Created on: Dec 28, 2010
Last updated: 13 years ago
Update Article

Revisions

View all history