function _default($tpl = null) { $model = $this->getModel(); $model->setState('order', 'tbl.ordering'); $model->setState('direction', 'ASC'); parent::_default($tpl); }
function _default($tpl = '', $onlyPagination = false) { /* Get the application */ $app = JFactory::getApplication(); parent::_default($tpl, $onlyPagination); //if (JRequest::getVar('tmpl') == 'component') if ($app->input->get('tmpl') == 'component') { $this->assign('tmpl', '&tmpl=component'); } }
/** * We could actually get rid of this override entirely * and just call $items = CitruscartHelperPlugin::getPlugins(); * from within the tmpl file * */ function _default($tpl = '', $onlyPagination = false) { parent::_default($tpl); /* Get the application */ $app = JFactory::getApplication(); Citruscart::load('CitruscartUrl', 'library.url'); Citruscart::load('CitruscartSelect', 'library.select'); Citruscart::load('CitruscartHelperUser', 'helpers.user'); $model = $this->getModel(); // form $form = array(); //$controller = strtolower( $this->get( '_controller', JRequest::getVar('controller', JRequest::getVar('view') ) ) ); $controller = strtolower($this->get('_controller', $app->input->getString('controller', $app->input->getString('view')))); //$view = strtolower( $this->get( '_view', JRequest::getVar('view') ) ); $view = strtolower($this->get('_view', $app->input->getString('view'))); $task = strtolower($this->get('_task', 'edit')); $form['action'] = $this->get('_action', "index.php?option=com_citruscart&view={$view}"); $form['validation'] = $this->get('_validation', "index.php?option=com_citruscart&controller={$controller}&task=validate&format=raw"); $form['validate'] = "<input type='hidden' name='" . JSession::getFormToken() . "' value='1' />"; $form['id'] = $model->getId(); $this->assign('form', $form); }
function _default($tpl = null) { Citruscart::load('CitruscartUrl', 'library.url'); parent::_default($tpl); }
/** * * */ function _default($tpl = null) { Citruscart::load('CitruscartUrl', 'library.url'); $model = $this->getModel(); parent::_default($tpl); }