<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.application.component.view');
/**
* HTML View class for the mycomponent component
* @package Mycomponent
*/
class ChalangeAdminViewPlayeradmin extends JView{
function display($tpl=null){
$model=$this->getModel();
$categoriesList=$model->getCategoriesList();
JTable::addIncludePath(JPATH_COMPONENT.DS.'tables');
$row=& JTable::getInstance('Players','Table');
$cid= JRequest::getVar('cid',array(0),'','array');
$id=$cid[0];
$task='';
echo $id." pablo";
if ($id==0){
$task='new';
}else{
$task='edit';
$row->load($id);
$this->assignRef('row',$row);
}
$this->assignRef('task',$task);
$this->assignRef('categoriesList',$categoriesList);
parent::display($tpl);
}
}
?>