aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/smarty/smarty/docs/programmers/api-variables/variable-allow-php-templates.md
blob: e15520e2d7663704eeb41c06c9ad5368393efe6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
\$allow\_php\_templates {#variable.allow.php.templates}
=======================

By default the PHP template file resource is disabled. Setting
`$allow_php_templates` to TRUE will enable PHP template files.

::: {.informalexample}

    <?php
    $smarty->allow_php_templates = true;
    ?>

            
:::

> **Note**
>
> The PHP template file resource is an undocumented deprecated feature.