mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +02:00
- added append array for short form of assign {$foo[]='bar'} and allow assignments to nested arrays {$foo['bla']['blue']='bar'}
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
04/05/2009
|
||||
- added append array for short form of assign {$foo[]='bar'} and allow assignments to nested arrays {$foo['bla']['blue']='bar'}
|
||||
|
||||
04/04/2009
|
||||
- make output of template default handlers cachable
|
||||
- make output of template default handlers cachable and save compiled source
|
||||
- some fixes on yesterdays update
|
||||
|
||||
04/03/2006
|
||||
|
@@ -52,7 +52,7 @@ class Smarty_Internal_Compile_Assign extends Smarty_Internal_CompileBase {
|
||||
if ($_attr['index'] == '') {
|
||||
return "<?php \$_smarty_tpl->append($_attr[var],$_attr[value],false,$_nocache,$_global);?>";
|
||||
} else {
|
||||
return "<?php \$_smarty_tpl->append($_attr[var],array($_attr[index] => $_attr[value]),true,$_nocache,$_global);?>";
|
||||
return "<?php \$_tmp$_attr[index] = $_attr[value]; \$_smarty_tpl->append($_attr[var],\$_tmp,true,$_nocache,$_global);?>";
|
||||
}
|
||||
} else {
|
||||
return "<?php \$_smarty_tpl->assign($_attr[var],$_attr[value],$_nocache,$_global);?>";
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user