Пример #1
0
 public function jobAction()
 {
     set_time_limit(0);
     $jobKey = $this->_getParam('jobKey', null);
     if (is_null($jobKey)) {
         throw new Ot_Exception_Input('msg-error-nameNotSet');
     }
     $dispatcher = new Ot_Cron_Dispatcher();
     $dispatcher->dispatch($jobKey);
     $this->_helper->messenger->addSuccess('Job executed successfully');
     $this->_helper->redirector->gotoRoute(array('controller' => 'cron', 'action' => 'index'), 'ot', true);
 }
Пример #2
0
 public function indexAction()
 {
     $dispatcher = new Ot_Cron_Dispatcher();
     $dispatcher->dispatch();
 }