_prepareDijit($attribs, $params, 'element'); // strip options so they don't show up in markup if (array_key_exists('options', $attribs)) { unset($attribs['options']); } // and now we create it: $html = ''; if (!strstr($id, '[]')) { // hidden element for unchecked value $html .= $this->_renderHiddenElement($id, $checkboxInfo['uncheckedValue']); } // and final element $html .= $this->_createFormElement($id, $checkboxInfo['checkedValue'], $params, $attribs); return $html; } }