Setting: PHPOperatorList
Table of contents:
About
eZ publish has the ability built-in to eZ publish to support the use of php functions directly in template code as template operators with a configuration settings addition of the php function name.
Limitation
Only supports functions which accept only a single parameter.
Alternatives
You can use more features of php without limitations by using the wrap_operator extension instead.
Functions
A brief list of know functions which accept only a single parameter.
The following list has to be ordered alphabetically. Keep this in mind when adding items to it.
Example
Example, 'settings/override/template.ini.append.php'
[PHP] # A list with php functions and their equivelant 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. PHPOperatorList[] PHPOperatorList[urlencode]=urlencode
External reference
- Documentation: Custom template operators (3.4)
- Documentation: Template operator (3.4)
- Documentation: Including php files in templates (3.4)
- Forum: How to convert date in timestamp