]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/templates/de/code/login_main.ctp
More conventions than code added:
[shipsimu.git] / application / ship-simu / templates / de / code / login_main.ctp
index b1116014818ba4d8b96ae6f49a0f6adba49c4fd2..b059c7f778ebb8b1d3286ebfff13843b58b2e6fa 100644 (file)
@@ -1,3 +1,24 @@
+<?php
+// Get a new instance for personal data
+$blockInstance = WebBlockHelper::createWebBlockHelper($this, 'persona_data');
+
+// Set the data source instance which must exist in registry
+$blockInstance->prefetchValueInstance('user');
+
+// Assign fields with template variables
+$blockInstance->assignField('username');
+
+// Shall we include registration date?
+if ($blockInstance->ifIncludeRegistrationStamp()) {
+       // Then assign it as well!
+       $blockInstance->assignFieldWithFilter('registered', 'formatTimestamp');
+} // END - if
+
+// Flush the content out to a template variable
+$blockInstance->flushContent();
+
+// End of all PHP commands
+?>
 <div id="content_header">
        Willkommen im Loginbereich  von {?app_full_name?}!
 </div>