]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/templates/de/code/action_ship_simu_login_logout.ctp
All helper are now configurable
[shipsimu.git] / application / ship-simu / templates / de / code / action_ship_simu_login_logout.ctp
index 8e430022a3d371be6b8db277292b36dc03154a70..39d2105883bddc0500ed2285e49ddf932ad4a252 100644 (file)
@@ -1,21 +1,21 @@
 <?php
 // Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'logout_now_link', 'index.php?app={?app_short_name?}&amp;page=logout');
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_now_link', 'index.php?app={?app_short_name?}&amp;page=logout'));
 
 // Set link text
-$helper->addLinkWithTextById('logout_now_link_text');
+$helperInstance->addLinkWithTextById('logout_now_link_text');
 
 // Flush the content
-$helper->flushContent();
+$helperInstance->flushContent();
 
 // Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'return_login_link', 'index.php?app={?app_short_name?}&amp;page=login_area');
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'return_login_link', 'index.php?app={?app_short_name?}&amp;page=login_area'));
 
 // Set link text
-$helper->addLinkWithTextById('return_login_link_text');
+$helperInstance->addLinkWithTextById('return_login_link_text');
 
 // Flush the content
-$helper->flushContent();
+$helperInstance->flushContent();
 
 // [EOF]
 ?>