mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-02 21:31:48 +01:00
Reworking, simplifying, and speeding up cache implementation.
Fixing the infelicity where you couldn't have '|' and ':' inside quoted modifier arguments.
This commit is contained in:
@@ -4,7 +4,9 @@ require("Smarty.class.php");
|
||||
|
||||
$smarty = new Smarty;
|
||||
|
||||
$smarty->cache_engine = false;
|
||||
$smarty->caching = false;
|
||||
|
||||
$smarty->assign(now, time());
|
||||
|
||||
$smarty->assign("Name","Fred Irving Johnathan Bradley Peppergill");
|
||||
$smarty->assign("FirstName",array("John","Mary","James","Henry"));
|
||||
@@ -19,4 +21,11 @@ $smarty->assign("now",time());
|
||||
|
||||
$smarty->display("index.tpl");
|
||||
|
||||
function insert_foo($args)
|
||||
{
|
||||
extract($args);
|
||||
|
||||
return "test $arg1";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -48,3 +48,5 @@ testing strip tags
|
||||
</PRE>
|
||||
|
||||
test: {$now|date_format:"%I:%M %p"}
|
||||
|
||||
{insert name = foo arg1=5}
|
||||
|
||||
Reference in New Issue
Block a user