// 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();