Esempio 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();
     $project_id = $mainframe->input->getInt('p', 0);
     $params = $mainframe->getParams();
     $model = $this->getModel();
     $individuals = $model->getIndividuals($project_id);
     $project = $model->getProject($project_id);
     $projectparams = $model->getParams($project_id);
     $breadcrumbs = $mainframe->getPathWay();
     $breadcrumbs->addItem($project->name . ' ' . JText::_('COM_TRACKS_Participants'), TrackslibHelperRoute::getParticipantsRoute($project_id));
     $document = JFactory::getDocument();
     $document->setTitle($project->name . ' ' . JText::_('COM_TRACKS_Participants'));
     $this->assignRef('params', $params);
     $this->assignRef('project', $project);
     $this->assignRef('projectparams', $projectparams);
     $this->assignRef('individuals', $individuals);
     parent::display($tpl);
 }