[ dakipro @ 06.10.2009. 07:36 ] @
Pozdrav, Jel neko koristi smarty 3alfa slucajno? Gledam readme i sav srecan cupkam, ima doooosta poboljsanja i unapredjenja koje zivot cine laksim http://smarty-php.googlecode.c...arty3Alpha/distribution/README Recimo highlights Citat: There is a new {function} {/function} block tag. This allows to reuse code sequences like a function. It can call itself recursively. New {foreach} syntax to loop over an array: {foreach $myarray as $var} .... {/foreach} $var@key will deliver the key $var@iteration will deliver the iteration $var@index will deliver the index $var@total will deliver the total number of array entries $var@first will deliver true for the first iteration $var@last will deliver true for the last iteration New assign {$foo = myfunct( ($x+$y)*3 )} as function parameter $foo_{$bar} variable name containing other variable -- Delimiters surrounded by whitespace are no longer treated as Smarty tags. Therefore, { foo } will not compile as a tag, you must use {foo}. This change Makes Javascript/CSS easier to work with, eliminating the need for {literal}. ...... So far so good on paper, videcemo kako ce se pokazati prakticno, inace me bas bas raduju izmene koje se uvode |