Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Sites Using Smarty

Advertisement

Name

enableSecurity() — テンプレートのセキュリティを有効にする

説明

string enableSecurity(string securityclass);
string enableSecurity(object securityobject);
string enableSecurity();

この関数は、テンプレートでのセキュリティチェックを有効にします。 次のパラメータを使います。

  • securityclass はオプションのパラメータで、 セキュリティポリシーパラメータを定義するクラスの名前です。

  • securityobject はオプションのパラメータで、 セキュリティポリシーパラメータを定義するオブジェクトです。

セキュリティポリシーの設定方法についての詳細は セキュリティ の節を参照ください。

disableSecurity() および セキュリティ も参照ください。