public function execute() { return false; $model = new Sp4kModulesImportModelsProducts(); $model->import(); $view = new Sp4kModulesImportViewsResultHtml($model); echo $view->render(); }
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); } }