]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/commands/web/class_WebRegisterCommand.php
CAPTCHA now works in registration form
[shipsimu.git] / inc / classes / main / commands / web / class_WebRegisterCommand.php
index 0ad939dd25d0ea6d06a4dcb197a42b990ce40741..df7cf2179e8665f274c437b40b5d1c26ea5da8c9 100644 (file)
@@ -78,29 +78,32 @@ class WebRegisterCommand extends BaseCommand implements Commandable, Registerabl
                // Assign all the application's data with template variables
                $templateInstance->assignApplicationData($appInstance);
 
+               // Assign base URL
+               $templateInstance->assignConfigVariable('base_url');
+
                // Load the master template
                $masterTemplate = $appInstance->getMasterTemplate();
 
                // Load header template
-               $templateInstance->loadCodeTemplate("header");
+               $templateInstance->loadCodeTemplate('header');
 
                // Compile and assign it with a variable
                $templateInstance->compileTemplate();
-               $templateInstance->assignTemplateWithVariable("header", "header");
+               $templateInstance->assignTemplateWithVariable('header', 'header');
 
                // Load footer template
-               $templateInstance->loadCodeTemplate("footer");
+               $templateInstance->loadCodeTemplate('footer');
 
                // Compile and assign it with a variable
                $templateInstance->compileTemplate();
-               $templateInstance->assignTemplateWithVariable("footer", "footer");
+               $templateInstance->assignTemplateWithVariable('footer', 'footer');
 
                // Load the register template
-               $templateInstance->loadCodeTemplate("register_form");
+               $templateInstance->loadCodeTemplate('register_form');
 
                // Assign the register template with the master template as a content ... ;)
                $templateInstance->compileTemplate();
-               $templateInstance->assignTemplateWithVariable("register_form", "content");
+               $templateInstance->assignTemplateWithVariable('register_form', 'content');
 
                // Load the master template
                $templateInstance->loadCodeTemplate($masterTemplate);
@@ -125,7 +128,7 @@ class WebRegisterCommand extends BaseCommand implements Commandable, Registerabl
         * @return      void
         */
        public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
-               // Empty for now
+               // Empty class
        }
 }