Hi guys,
I am trying to execute method from class via terminal and when I will be achieve that, to set-up it as cron job.
Here is the file: script.php:
class CronJobModule_Controller_Admin_TransferControlPanel extends ModuleName_Controller_Admin_Abstract
class Module_Controller_Admin_Abstract is in file Abstract.php
And when I am trying to execute in a terminal with the command:
php -r ‘include “script.php”; CronJobModule_Controller_Admin_TransferControlPanel::run();’
Fatal Error is thrown:
Class ‘ModuleName_Controller_Admin_Abstract’ not found in the script.php.
And when I am adding the class with requiring once, I am getting error that some other class is missed but class that is used in Abstract.php and all the time I am in a loop with the errros.
So, I want to ask if there is a way to autoload all the classes in the script.php file to execute method from class successfully.
Thank you.