Is it possible to inherit class properties set through the application config file?
Example:
In config/main.php
//COMPONENT - myFirstClass
'myFirstClass'=>array(
'class'=>'application.components.myFirstClass',
'myProperty'=>'someValue',
),
class myFirstClass extends CApplicationComponent
{
public myProperty;
}
class mySecondClass extends myFirstClass
{
public function printMyProperty()
{
echo $this->myProperty; //Does not work
echo Yii::app()->myFirstClass->myProperty; // Does work but seems messy?
}
}