public function initContent($token = null) { $app = JFactory::getApplication(); $context = JeproshopContext::getContext(); $task = $app->input->get('task'); $view = $app->input->get('view'); //$viewClass = $this->getView($view, JFactory::getDocument()->getType()); if ($task == 'add' || $task == 'edit') { if ($task == 'add') { } elseif ($task == 'edit') { } } else { if ($category_id = (int) $this->current_category_id) { self::$_current_index .= '&category_id=' . (int) $this->current_category_id; } if (!$category_id) { $this->_defaultOrderBy = 'product'; if (isset($context->cookie->product_order_by) && $context->cookie->product_order_by == 'position') { unset($context->cookie->product_order_by); unset($context->cookie->product_order_way); } //$category_id = 1; } } parent::initContent(); }
public function initContent() { parent::initContent(); if (!$this->has_errors) { } }