]> git.mxchange.org Git - shipsimu.git/blobdiff - application/shoutbox/templates/de/code/login_form.ctp
All helper are now configurable
[shipsimu.git] / application / shoutbox / templates / de / code / login_form.ctp
index 68cbe473b652a0ae68ca8ef35b852455d53147cf..e0a72b00406a9e8bbb7c92a3724e7fe0b907f1ea 100644 (file)
@@ -2,7 +2,7 @@
 // Get helper instance for web forms. This will add the opening form-tag to
 // the helper's render cache which is simply a small variable in the class
 // BaseHelper.
-$helper = WebFormHelper::createWebFormHelper($this, 'shoutbox_user_login');
+$helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'shoutbox_user_login'));
 
 // Formular deaktiviert?
 if ($helper->ifLoginIsEnabled()) {
@@ -53,7 +53,7 @@ $helper->flushContent();
 // Ist Gastlogin erlaubt?
 if ($helper->ifGuestLoginAllowed()) {
        // Neue Helper-Instanz holen
-       $helper = WebFormHelper::createWebFormHelper($this, 'shoutbox_guest_login');
+       $helper = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'shoutbox_guest_login'));
        $helper->addInputHiddenConfiguredField('user', 'guest_login');
        $helper->addInputHiddenConfiguredField('passwd', 'guest_login');
 
@@ -70,7 +70,7 @@ if ($helper->ifGuestLoginAllowed()) {
 }
 
 // Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'register_login_form_link', 'index.php?app={?app_short_name?}&page=register');
+$helper = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'register_login_form_link', 'index.php?app={?app_short_name?}&page=register'));
 
 // Set link text
 $helper->addLinkWithTextById('register_login_form_link_text');