Failed To Import My Class In Extensions

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';


And also import that class in this way:






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.

Are you sure this path points to the right place?

$cronTab = dirname(dirname(dirname(__FILE__))).'/extensions/CronTab_Manager';

While testing, I’d var_dump($cronTab) after that line to make sure it’s pointing to the correct directory.