Following things are changed: (in order of class names)
[shipsimu.git] / application / ship-simu / templates / de / code / login_main.ctp
index b059c7f778ebb8b1d3286ebfff13843b58b2e6fa..3326c51f4405e4c7f7c2bcca1cd686d4b1ed8eeb 100644 (file)
@@ -1,4 +1,8 @@
 <?php
+///////////////////////////////
+// Assign personal user data //
+///////////////////////////////
+
 // Get a new instance for personal data
 $blockInstance = WebBlockHelper::createWebBlockHelper($this, 'persona_data');
 
@@ -17,6 +21,22 @@ if ($blockInstance->ifIncludeRegistrationStamp()) {
 // Flush the content out to a template variable
 $blockInstance->flushContent();
 
+//////////////////////////////////////
+// Assign the shipping company data //
+//////////////////////////////////////
+
+// Get a new instance for personal data
+$blockInstance = WebBlockHelper::createWebBlockHelper($this, 'company_data');
+
+// Get the user instance 
+$userInstance = Registry::getRegistry()->getInstance('user');
+
+// Get a shipping company instance ready
+$companyInstance = ObjectFactory::createObjectByConfiguredName('company_class', array($userInstance));
+
+// Flush the content out to a template variable
+//$blockInstance->flushContent();
+
 // End of all PHP commands
 ?>
 <div id="content_header">