function __construct($config = null)
 {
     parent::__construct($config);
     $this->jevlayout = "default";
     $this->addHelperPath(realpath(dirname(__FILE__) . "/../helpers"));
     $this->addHelperPath(JPATH_BASE . DS . 'templates' . DS . JFactory::getApplication()->getTemplate() . DS . 'html' . DS . JEV_COM_COMPONENT . DS . "helpers");
     // attach data model
     $this->datamodel = new JEventsDataModel();
     $this->datamodel->setupComponentCatids();
     $reg =& JevRegistry::getInstance("jevents");
     $reg->setReference("jevents.datamodel", $this->datamodel);
 }
 function __construct($config = null)
 {
     parent::__construct($config);
 }