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[...]