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