What is Smarty?
Why use it?
Use Cases and Work Flow
Syntax Comparison
Template Inheritance
Best Practices
Crash Course
You may use the Smarty logo according to the trademark notice.
For sponsorship, advertising, news or other inquiries, contact us at:
enableSecurity() — テンプレートのセキュリティを有効にする
string enableSecurity(string securityclass);
string enableSecurity(object securityobject);
string enableSecurity();
この関数は、テンプレートでのセキュリティチェックを有効にします。 次のパラメータを使います。
securityclass
はオプションのパラメータで、
セキュリティポリシーパラメータを定義するクラスの名前です。
securityobject
はオプションのパラメータで、
セキュリティポリシーパラメータを定義するオブジェクトです。
セキュリティポリシーの設定方法についての詳細は セキュリティ の節を参照ください。
disableSecurity()
および
セキュリティ
も参照ください。