]> git.mxchange.org Git - hub.git/commitdiff
Also this ...
authorRoland Häder <roland@mxchange.org>
Wed, 22 Aug 2012 20:39:38 +0000 (20:39 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 22 Aug 2012 20:39:38 +0000 (20:39 +0000)
application/hub/main/template/class_
application/hub/main/template/class_BaseXmlTemplateEngine.php

index 8543d31e7f6957b7a999db81f80692605330a4b0..39c17a160ca7c306faf5f507c27b70921840f263 100644 (file)
@@ -23,7 +23,7 @@
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 die('YOU NEED TO REPLACE ???, !!! AND ||| IN THIS CLASS BEFORE YOU CAN USE IT.');
-class Xml???TemplateEngine extends BaseTemplateEngine implements CompileableTemplate, Registerable {
+class Xml???TemplateEngine extends BaseXmlTemplateEngine implements CompileableTemplate, Registerable {
        /**
         * Main nodes in the XML tree
         */
index 0027674180fb47eb4aee169b44b501944b6d9487..753c9df6578947d20c8d1be446d2de7be3c75a94 100644 (file)
@@ -78,6 +78,9 @@ class BaseXMLTemplateEngine extends BaseTemplateEngine {
         *                                                                                      read-protected
         */
        protected function initXmlTemplateEngine ($typePrefix, $xmlTemplateType) {
+               // Get template instance
+               $applicationInstance = Registry::getRegistry()->getInstance('app');
+
                // Determine base path
                $templateBasePath = $this->getConfigInstance()->getConfigEntry('application_base_path') . $applicationInstance->getRequestInstance()->getRequestElement('app') . '/';