Hello guys.
I wrote a class ‘CronTab_Manager’ to generating and managing cron jobs whith PHP. Now I want to access it everywhere in my project.
In my config file I set path of alias like below:
$cronTab = dirname(dirname(dirname(__FILE__))).'/extensions/CronTab_Manager';
Yii::setPathOfAlias('cronTab',$cronTab);
And also import that class in this way:
'import'=>array(
'application.models.*',
'application.components.*',
'cronTab.*',
),
My class isn’t extended from other classes, and when I want to create an object of this class I receive this error:
Any suggestion will be appreciated.
Thanks in advance.