function doctype($doctype = 'html') { // set the doctype $this->form_properties['doctype'] = strtolower($doctype) == 'xhtml' ? 'xhtml' : 'html'; }