configure(array('privateKey'=>$this->privateKey)); $this->setValidation($validator); } public function render() { $js_lang = _accua_forms_json_encode($this->form->getLanguage()); $js_field_id = _accua_forms_json_encode($this->attributes["id"]);//$this->form->attributes['id'] per id del form $js_publicKey = _accua_forms_json_encode($this->publicKey); $js_path = _accua_forms_json_encode(ACCUA_FORMS_DIR_URL . 'accua-recaptcha2.js'); $field_id = htmlspecialchars($this->attributes["id"], ENT_QUOTES); echo <<
EOT; } }