public function display($tpl = null) { $this->generateToolbar(); $model = $this->getModel(); $rows = $this->get('list'); $pagination = $this->get('pagination'); $this->assignRef('model', $model); $this->assignRef('rows', $rows); $this->assignRef('pagination', $pagination); parent::display($tpl); }
public function display($tpl = null) { if ($this->routeLayout($tpl)) { return; } $this->generateToolbar(); $views = $this->getMainViews(); $this->assignRef('views', $views); $this->assignRef('modified', $modified); parent::display($tpl); }
protected function displayEdit($tpl = null) { JHTML::script('joomla.javascript.js', 'includes/js/'); $this->assignRef('return', $_SERVER['HTTP_REFERER']); $key = JTable::getInstance('Key', 'JMTable'); if ($id = JRequest::getInt('id', 0)) { $key->load($id); if ($key->user_id != JFactory::getUser()->get('id')) { JFactory::getApplication()->redirect($_SERVER['HTTP_REFERER'], JText::_('COM_JM_UNAUTHORIZED_EDIT_KEY')); return false; } } elseif (!$this->can_register) { JFactory::getApplication()->redirect(JRoute::_('index.php?option=com_jm&view=keys'), JText::_('COM_JM_UNAUTHORIZED_REGISTER')); return false; } $this->assignRef('key', $key); parent::display($tpl); }