Hi,
I have some class level variables in model file, is there any way to define these variable values in main.config
e.g
File : protected/model/test.php
class Test {
public employee_type = 'manager';
}
I would like to define employee_type value in protected/config/main.php
We can achieve this.
import the model in main config !!
if the model is in basefolder then then you can use like
test::model()->employee_type;
anywhere