예제 #1
0
 public function execute()
 {
     return false;
     $model = new Sp4kModulesImportModelsProducts();
     $model->import();
     $view = new Sp4kModulesImportViewsResultHtml($model);
     echo $view->render();
 }
예제 #2
0
 public function execute()
 {
     $model = new Sp4kModulesImportModelsCoaches(new Joomla\Registry\Registry($this->app->input->getArray()));
     $model->import();
     $view = new Sp4kModulesImportViewsResultHtml($model);
     if (!$model->continue) {
         echo $view->render();
     } else {
         JFactory::getApplication()->redirect('index.php?option=com_sp4k&task=import.coaches&start=' . $model->start);
     }
 }