- initial
authorZsolt Udvari <uzsolt@pld-linux.org>
Thu, 12 May 2011 14:28:46 +0000 (14:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Smarty_tpl.php -> 1.1

Smarty_tpl.php [new file with mode: 0644]

diff --git a/Smarty_tpl.php b/Smarty_tpl.php
new file mode 100644 (file)
index 0000000..9606336
--- /dev/null
@@ -0,0 +1,27 @@
+<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+//smarty class in PLD-specific path
+require "/usr/share/php/Smarty.class.php";
+//system/application/libraries/smarty_tpl.php
+class smarty_tpl extends Smarty{
+    function smarty_tpl(){
+        $this->Smarty();
+        // templates folder
+        $this->template_dir=    APPPATH."views/templates";
+        // compiled templates folder
+        $this->compile_dir=     APPPATH."views/templates_c";
+        // cache folder
+        $this->cache_dir=       APPPATH."views/cache";
+        //config folder
+        $this->config_dir=      APPPATH."views/config";
+        // template recheck on
+        $this->compile_check=   true;
+        // cache off
+        $this->caching=         false;
+        $this->cache_lifetime=  86400;
+    }
+}
This page took 0.105144 seconds and 4 git commands to generate.