$this->setVariable('config', $variableName, $this->getConfigInstance()->getConfigEntry($variableName));
}
+ /**
+ * Injects an array of config variables into the stack of currently loaded
+ * template. This method should only be used in very rare circumstances,
+ * e.g. when you have to copy a whole set of variables into the template
+ * engine. Before you use this method, please make sure you have considered
+ * all other possiblities.
+ *
+ * @param $variables An array with variables to be injected
+ * @return void
+ */
+ public function injectConfigVariables (array $variables) {
+ // Set it
+ $this->varStack['config'] = $variables;
+ }
+
/**
* Assigns all the application data with template variables
*