mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +02:00
example
This commit is contained in:
@@ -10,6 +10,21 @@
|
|||||||
use this when
|
use this when
|
||||||
<link linkend="variable.security">$security</link> is enabled.
|
<link linkend="variable.security">$security</link> is enabled.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
|
||||||
|
<example>
|
||||||
|
<title>$secure_dir example</title>
|
||||||
|
<programlisting role="php">
|
||||||
|
<![CDATA[
|
||||||
|
<?php
|
||||||
|
$secure_dirs[] = '/path/to/site/root/templates/';
|
||||||
|
$secure_dirs[] = '/path/to/includes/';
|
||||||
|
$smarty->secure_dir = $secure_dirs;
|
||||||
|
?>
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
|
</example>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
See also
|
See also
|
||||||
<link linkend="variable.security.settings">Security settings</link>,
|
<link linkend="variable.security.settings">Security settings</link>,
|
||||||
|
Reference in New Issue
Block a user