public function __construct(&$modx, &$xpdo) { parent::__construct(&$modx, &$xpdo); $this->set('template', 'eventform'); }