<?php
/**
* @version 2.7.0
* @package Joomla 1.5
* @subpackage DT Register
* @copyright Copyright (C) 2006 DTH Development
* @copyright contact dthdev@dthdevelopment.com
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
defined( '_JEXEC' ) or die( 'Restricted access' );
class DtregisterControllerEventgroup extends DtrController {
    
	var $name ='eventgroup';
	
	function __construct($config = array()){
		 parent::__construct($config);
		 $this->view = & $this->getView( 'eventgroup', 'html' );  
		 $this->view->setModel($this->getModel('eventgroup'),true);
		 $this->view->setModel($this->getModel( 'category' ),false);
		 $this->view->setModel($this->getModel( 'location' ),false);
		 $this->view->setModel($this->getModel( 'section' ),false);
		 $this->view->setModel($this->getModel( 'discountcode' ),false);
		 $this->view->setModel($this->getModel( 'file' ),false);
		 $this->registerTask( 'new',  'add' );
		 $this->registerDefaultTask("add");
		// JToolBarHelper::title(  JText::_( 'DT_CATEGORY_MANAGEMENT'), 'dtregister' );
	}
	
	function events(){
	   
	   
	    $this->view->setLayout('list');
		$this->view->display();
	  
	}
	
	function add(){
	     $this->view->setLayout('add');
		 $this->view->display();
	}
	
}