Location: PHPKode > projects > Chalange > com_chalange/views/registerform/view.html.php
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport('joomla.application.component.view');
/**
  * HTML View Player class for the Chalange component
  * @package Chalange
  */
  class ChalangeViewRegisterform extends JView{
  	function display($tpl=null){
		$mainframe =& JFactory::getApplication(); 
		$chalangeId= $mainframe->getUserState("$option.chalange_variable");
  		$model=& $this->getModel();
  		//$player=$model->getPlayer(JRequest::get('post'));
  		$idPlayer=JRequest::getCmd( 'idPlayer' );
  		$categories=$model->getCategories(JRequest::getCmd('idCarrera'));
		$player=$model->getPlayer($idPlayer);
  		$dorsal=$model->getDorsal($idPlayer,$chalangeId);
  		if (!empty($dorsal)) $player->dorsal=$dorsal;
		$this->assignRef('player',$player); //En caso de estar editando, los datos de la persona
  		$this->assignRef('categories',$categories); // Array de categorías posibles en esta carrera
  		parent::display($tpl);
  	}
  }
?>
Return current item: Chalange