smarty template engine
Friday, July 25, 2008  
download | documentation | faq | forum | mailing lists | changelog | contribs 


search for in the  


$secure_dir

これは、セキュアであるとみなすローカルファイルやディレクトリを格納する配列です。 {include} および {fetch} は、$security が有効な場合にこの設定を使用します。

例 12-5. $secure_dir の例

<?php
$secure_dirs
[] = '/path/to/site/root/templates/';
$secure_dirs[] = '/path/to/includes/';
$smarty->secure_dir $secure_dirs;
?>

$security_settings および $trusted_dir も参照してください。




 

credits 

Smarty Copyright © 2002-2008
New Digital Group, Inc.

All rights reserved.