Block helper added, login area with stubs
[shipsimu.git] / application / ship-simu / templates / de / code / login_main.ctp
index b1116014818ba4d8b96ae6f49a0f6adba49c4fd2..c31973356e55534a381b201e47b49d61c720e78c 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->setDataSource('user');
+
+// Load the username field
+$blockInstance->loadField('username');
+
+// Shall we include registration date?
+if (($blockInstance->ifIncludeRegistrationStamp()) && ($blockInstance->ifRegistrationRequiresStamp())) {
+       // Then add it!
+       $blockInstance->loadFieldWithFilter('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>