_defaults['startDate'] = date('Y-m-d'); $this->_defaults['endDate'] = date('Y-m-d', strtotime('+1 month')); $this->_defaults['code'] = $this->_getDataObj()->generateCode(); return parent::init(); } }