Ejemplo n.º 1
0
 /**
  * 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();
     $params = $mainframe->getParams('com_tracks');
     $model = $this->getModel();
     $rows = $model->getData();
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('COM_TRACKS_All_Individuals'));
     $breadcrumbs = $mainframe->getPathWay();
     $breadcrumbs->addItem(JText::_('COM_TRACKS_All_Individuals'), TrackslibHelperRoute::getIndividualsRoute());
     $this->assignRef('rows', $rows);
     $this->assignRef('params', $params);
     parent::display($tpl);
 }