packages: CodeIgniter-lib-smarty/Smarty_tpl.php (NEW) - initial

uzsolt uzsolt at pld-linux.org
Thu May 12 16:28:52 CEST 2011


Author: uzsolt                       Date: Thu May 12 14:28:52 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial

---- Files affected:
packages/CodeIgniter-lib-smarty:
   Smarty_tpl.php (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/CodeIgniter-lib-smarty/Smarty_tpl.php
diff -u /dev/null packages/CodeIgniter-lib-smarty/Smarty_tpl.php:1.1
--- /dev/null	Thu May 12 16:28:52 2011
+++ packages/CodeIgniter-lib-smarty/Smarty_tpl.php	Thu May 12 16:28:46 2011
@@ -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;
+    }
+}
================================================================


More information about the pld-cvs-commit mailing list