Example #1
0
 /**
  * Execute the action
  */
 public function execute()
 {
     parent::execute();
     // action to execute
     $id = \SpoonFilter::getGetValue('id', null, 0);
     // no id's provided
     if (!BackendMailmotorModel::existsMailing($id)) {
         $this->redirect(BackendModel::createURLForAction('Index') . '&error=mailing-does-not-exist');
     } else {
         // at least one id
         BackendMailmotorModel::exportStatistics($id);
     }
     // redirect
     $this->redirect(BackendModel::createURLForAction('Groups') . '&report=export-failed');
 }