Setup for Smarty
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 11 Jul 2014 16:54:00 +0000 (12:54 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 11 Jul 2014 16:54:00 +0000 (12:54 -0400)
Needed update for Smarty to be used.

Toolkit/Smarty.php [new file with mode: 0644]
setup.phtml

diff --git a/Toolkit/Smarty.php b/Toolkit/Smarty.php
new file mode 100644 (file)
index 0000000..80d2afa
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+require_once SMARTY_DIR . 'Smarty.class.php';
+
+class Toolkit_Smarty
+    extends Smarty
+{
+    public function __construct(
+        $templateDir,
+        $compileDir,
+        $configDir,
+        $cacheDir
+    ) {
+        parent::__construct();
+
+        $this->setTemplateDir($templateDir);
+        $this->setCompileDir($compileDir);
+        $this->setConfigDir($configDir);
+        $this->setCacheDir($cacheDir);
+    }
+}
index 7d80027..3695959 100644 (file)
@@ -97,6 +97,7 @@ default : // {{{
     die('<p>Your request could not be completed at this time, please try again later!</p>');
     break; // }}}
 } // }}}
+define('SMARTY_DIR', '/var/www/server/CommonApps/Smarty/3.1/');
 /**
  * Path to the common GLM application repository
  */