public static function beginAjaxForm($attributes) { if (!isset(htmlRender::$uniqueId)) { htmlRender::$uniqueId = md5(uniqid()); } $elementHtml = '<form data-formid="' . htmlRender::$uniqueId . '"'; $elementHtml = htmlRender::setAttributes($elementHtml, $attributes); $elementHtml = $elementHtml . '>'; echo $elementHtml; }