/** * Execute and display a template script. * * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return mixed A string if successful, otherwise a Error object. */ public function display($tpl = null) { RHelperAsset::load('tracks.css'); $mainframe = JFactory::getApplication(); $model = $this->getModel(); $rows = $model->getData(); $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_TRACKS_All_Teams')); $breadcrumbs = $mainframe->getPathWay(); $breadcrumbs->addItem(JText::_('COM_TRACKS_All_Teams'), TrackslibHelperRoute::getTeamsRoute()); $this->assignRef('rows', $rows); parent::display($tpl); }