More conventions than code added:
[shipsimu.git] / application / ship-simu / templates / de / code / login_main.ctp
index c31973356e55534a381b201e47b49d61c720e78c..b059c7f778ebb8b1d3286ebfff13843b58b2e6fa 100644 (file)
@@ -3,15 +3,15 @@
 $blockInstance = WebBlockHelper::createWebBlockHelper($this, 'persona_data');
 
 // Set the data source instance which must exist in registry
-$blockInstance->setDataSource('user');
+$blockInstance->prefetchValueInstance('user');
 
-// Load the username field
-$blockInstance->loadField('username');
+// Assign fields with template variables
+$blockInstance->assignField('username');
 
 // Shall we include registration date?
-if (($blockInstance->ifIncludeRegistrationStamp()) && ($blockInstance->ifRegistrationRequiresStamp())) {
-       // Then add it!
-       $blockInstance->loadFieldWithFilter('registered', 'formatTimestamp');
+if ($blockInstance->ifIncludeRegistrationStamp()) {
+       // Then assign it as well!
+       $blockInstance->assignFieldWithFilter('registered', 'formatTimestamp');
 } // END - if
 
 // Flush the content out to a template variable