Display this
{else}Display that
{/if} Debug ----- You can turn on debug mode with ``$debug``: .. code-block:: php $debug = true; .. tip:: Debug messages will be printed in server logs. You can adjust the debug level by using PHP predefined constants in ``$debug_level``: .. code-block:: php $debug_level = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED & ~E_WARNING; This is also possible to enable Smarty debug, for web interface issues: .. code-block:: php $smarty_debug = true; .. tip:: Debug messages will appear on web interface. You will also have many more messages in error logs. Smarty ------ You need to define where Smarty is installed: .. code-block:: php define("SMARTY", "/usr/share/php/smarty3/Smarty.class.php");