06
Jul
Jul
Smarty Tipps
Ein paar schnelle Smarty Tipps die man immer mal gebrauchen kann:
Im Template
Anzahl der Elemente in einem Array ermitteln:
{$array|@count}
Template Variablen kombinieren:
{assign var="foobar" value="`$foo`-`$bar`"}
Smarty Debug Konsole anzeigen:
{debug}
In PHP
Eine Smarty Template Funktion in PHP verwenden:
require_once($smarty->_get_plugin_filepath("function", "foo"));
smarty_function_foo(array("param" => "value"), $smarty);
Alle Template Variablen ausgeben:
print_r($smarty->get_template_vars());
Am 06.07.07 um 13:27 Uhr in Kategorie: Webentwicklung


Kommentare
wäre es nicht besser wenn mal erklärt was was ist ?