]> git.mxchange.org Git - shipsimu.git/blobdiff - application/shoutbox/templates/de/code/captch_graphic_code.ctp
All helper are now configurable
[shipsimu.git] / application / shoutbox / templates / de / code / captch_graphic_code.ctp
index 210db8f80a8ce2385e845f19062b4506181039de..cf0e6e7c6e83c57e4d4f1b481bf27ae257cad6ea 100644 (file)
@@ -1,9 +1,15 @@
 <?php
 // Get a helper instance without a form tag
-$captchaHelper = WebFormHelper::createWebFormHelper($this, 'captcha_code', false, false);
+$captchaHelper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'captcha_code', false, false));
+
+// Add input field with text for CAPTCHA code
 $captchaHelper->addFieldText('captcha_code', "Bitte wiederhole den Code:");
 $captchaHelper->addInputTextField('c_code');
+
+// Add hidden field with validation hash
 $captchaHelper->addInputHiddenField('hash', $this->readVariable('captcha_hash'));
+
+// Flush content
 $captchaHelper->flushContent();
 
 // [EOF]