add default_resource_type, ignore 1 char resource names

This commit is contained in:
mohrt
2003-06-06 15:49:29 +00:00
parent e51af36e66
commit a569bd39dc
3 changed files with 25 additions and 3 deletions
+14
View File
@@ -300,6 +300,20 @@ class Smarty
*/
var $default_modifiers = array();
/**
* This is the resource type to be used when not specified
* at the beginning of the resource path. examples:
* $smarty->display('file:index.tpl');
* $smarty->display('db:index.tpl');
* $smarty->display('index.tpl'); // will use default resource type
* {include file="file:index.tpl"}
* {include file="db:index.tpl"}
* {include file="index.tpl"} {* will use default resource type *}
*
* @var array
*/
var $default_resource_type = 'file';
/**
* The function used for cache file handling. If not set, built-in caching is used.
*