diff --git a/Smarty.class.php b/Smarty.class.php
index 09841575..113d6d9d 100644
--- a/Smarty.class.php
+++ b/Smarty.class.php
@@ -79,6 +79,8 @@ class Smarty
var $cache_lifetime = 3600; // number of seconds cached content will persist.
// 0 = never expires. default is one hour (3600)
+ var $tpl_file_ext = '.tpl'; // template file extention
+
var $php_handling = SMARTY_PHP_PASSTHRU;
// how smarty handles php tags in the templates
// possible values:
diff --git a/docs.sgml b/docs.sgml
index aeff35f3..6ea4fb1f 100644
--- a/docs.sgml
+++ b/docs.sgml
@@ -359,6 +359,33 @@ chmod 700 cache
added to Smarty 1.3.0.
+
+ $tpl_file_ext
+
+ This is the extention used for template files. By default this
+ is ".tpl". All other files in the template directory are
+ ignored.
+
+
+ NOTE: $tpl_file_ext is no longer needed in 1.4.0. This is kept
+ for backward compatability.
+
+
+
+ $allow_php
+
+ Whether or not to allow PHP code in the templates. If set to
+ false, PHP code is escaped and not interpreted. Embedding PHP
+ code into templates is highly discouraged. Use custom functions or modifiers instead. Default
+ is "false".
+
+
+ NOTE: $allow_php was removed in 1.3.0, and replaced with
+ $php_handling.
+
+ $php_handling
@@ -3693,11 +3720,9 @@ OUTPUT:
- {html_select_date}, an included custom function with Smarty, also
- expects a timestamp as the default value. When using {html_select_date}
- in a template, The programmer will most likely want to convert the
- output from the form back into timestamp format. Here is a function to
- help you with that.
+ When using {html_select_date} in a template, The programmer will most
+ likely want to convert the output from the form back into timestamp
+ format. Here is a function to help you with that.
converting form date elements back to a timestamp
@@ -3706,7 +3731,7 @@ OUTPUT:
// this assumes your form elements are named
// startDate_Day, startDate_Month, startDate_Year
-$startDate = makeTimestamp($startDate_Year,$startDate_Month,$startDate_day);
+$startDate = makeTimeStamp($startDate_Year,$startDate_Month,$startDate_day);
function makeTimeStamp($year="",$month="",$day="")
{
diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php
index 09841575..113d6d9d 100644
--- a/libs/Smarty.class.php
+++ b/libs/Smarty.class.php
@@ -79,6 +79,8 @@ class Smarty
var $cache_lifetime = 3600; // number of seconds cached content will persist.
// 0 = never expires. default is one hour (3600)
+ var $tpl_file_ext = '.tpl'; // template file extention
+
var $php_handling = SMARTY_PHP_PASSTHRU;
// how smarty handles php tags in the templates
// possible values: