<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.application.component.view');
/**
* HTML View class for the mycomponent component
* @package Mycomponent
*/
class ChalangeAdminViewAddRaceToChalangeAdmin extends JView{
function display($tpl=null){
$model=& $this->getModel();
$idChalange=JRequest::getCmd('chalangeId');
$datos= $model->getRaces($idChalange);//return all the races not assigned to the chalange
$this->assignRef('chalangeName',$model->getChalangeName($idChalange));
$this->assignRef('chalangeId',$idChalange);
$this->assignRef('races',$datos);
parent::display($tpl);
}
}
?>