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