Difference between #1 and #2 of
Define general array and variable and call it to anywhere in application

Revision #2 has been created by Maurizio Domba Cerin on Jan 17, 2013, 11:23:23 AM with the memo:

fixed code spacing
« previous (#1)

Changes

Title unchanged

Define general array and variable and call it to anywhere in application

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Content changed

[...]
```php
Yii::app()->params['TEXT_ACTIVE'] = 'Active'; //1 for active

Yii::app()->params['AD_LAYOUT_POISITION'] = array(
"1" => array( 'width' => '1000',  'height' => '150' ),
 
"2" => array(
 
),
 
"2" => array(
 
'width' => '200', 'height' => '150' ),
 
),
 
"3" => array( 'width' => '1000', 'height' => '150' ),
 
),
 
"4" => array( 'width' => '200', 'height' => '150' ),
 

 
),
 
);
```

Now include this file in protected/config/main.php

```php
[...]
1 4
3 followers
Viewed: 14 438 times
Version: 1.1
Category: Tutorials
Tags:
Written by: bhavesh vaghela
Last updated by: Maurizio Domba Cerin
Created on: Jan 16, 2013
Last updated: 11 years ago
Update Article

Revisions

View all history