Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

template.ini [PHP]

The settings of [PHP] in template.ini: PHPOperatorList

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/ini-settings/template/PHP.md

On this page

template.ini [PHP]

The block [PHP] of settings/template.ini, with 1 setting(s).

Never edit settings/template.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:

  • settings/override/template.ini.append.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/template.ini.append.php for one siteaccess,
  • extension/<extension>/settings/template.ini.append.php in an extension (read when the extension is active).

PHPOperatorList

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.
RFC 3986 encoding: a space becomes %20 (urlencode gives +), for path segments and
for values another system decodes with rawurldecode

Default: a hash of 4: urlencode=urlencode, urldecode=urldecode, rawurlencode=rawurlencode, rawurldecode=rawurldecode.

<?php /* #?ini charset="utf-8"?
# settings/override/template.ini.append.php
[PHP]
# an empty "PHPOperatorList[]" first replaces the shipped list; without it the items are added
PHPOperatorList[]
PHPOperatorList[urlencode]=urlencode
PHPOperatorList[urldecode]=urldecode
PHPOperatorList[rawurlencode]=rawurlencode
PHPOperatorList[rawurldecode]=rawurldecode
*/ ?>

Generated by ./console exp:help:examples from settings/template.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x