Location: PHPKode > projects > Chalange > com_chalange/views/player/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 ChalangeViewPlayer extends JView{
  	function display($tpl=null){
		$mainframe =& JFactory::getApplication(); 
		$chalangeId= $mainframe->getUserState("$option.chalange_variable");
  		$model=& $this->getModel();
  		//$player=$model->getPlayer(JRequest::get('post'));
  		$licenceId=JRequest::getCmd( 'licenceId' );
  		$player= $model->getPlayer($licenceId);
  		$dorsal=$model->getDorsal($licenceId,$chalangeId);
  		if (!empty($dorsal)) $player->dorsal=$dorsal;
  		$this->assignRef('licenceId',$licenceId);
  		$this->assignRef('idCarrera',JRequest::getCmd( 'idCarrera' ));
  		$this->assignRef('player',$player);
  		parent::display($tpl);
  	}
  }
?>
Return current item: Chalange