PHP Funktionen verfügbar machen
PHP-Funktionen, denen nur ein Parameter übergeben werden muß, können einfach in der template.ini verfügbar gemacht werden:
[PHP] # A list with php functions and their equivalent template operator names # Giving the operators a different name from the PHP functions # are recommended, that way you ensure that all operators follow # the same naming guidelines. It also means that you can change the # php function later on without doing template changes. # Note: Only one parameter (the value) is supported and php function must # return result by value and not by reference. PHPOperatorList[] PHPOperatorList[urlencode]=urlencode PHPOperatorList[urldecode]=urldecode PHPOperatorList[striptags]=strip_tags
Lebenswichtig ist auch die swark-Extension, die viele PHP-Funktionen (str_replace etc.) nachrüstet.

Kommentare
Bitte melden Sie sich an oder registrieren Sie sich um kommentieren zu können.