parseTemplate

The parseTemplate hook is triggered before parsing a template. It passes the template object and does not expect a return value.

Parameters

  1. Template $objTemplate

    The front end or back end template instance.

Example

<?php

// config.php
$GLOBALS['TL_HOOKS']['parseTemplate'][] = array('MyClass', 'myParseTemplate');

// MyClass.php
public function myParseTemplate($objTemplate)
{
    if ($objTemplate->getName() == 'fe_page')
    {
        // Do something
    }
}

More information

References

See also

results matching ""

    No results matching ""