Get Smarty

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:

Check reviews of PHP Web Hosting, compatible with Smarty Templates

$plugins_dir

Smartyが必要とするプラグインを置くディレクトリです。デフォルトは SMARTY_DIR 直下の plugins/ です。 相対パスが指定された場合は、まず最初に SMARTY_DIR 直下を見ます。そこで見つからなかった場合は、 次にカレントディレクトリ、PHPのinclude_pathの順で見ていきます。 $plugins_dir がディレクトリ名の配列であった場合、Smarty は各プラグインディレクトリを 与えられた順に 検索します。

テクニカルノート

パフォーマンスを確保するため、$plugins_dir には PHP のインクルードパスを使用しないでください。絶対パスを使用するか、 SMARTY_DIR あるいはカレントディレクトリからの相対パスを使用してください。

Example 12.1. ローカルのプラグインディレクトリの追加


<?php

$smarty->plugins_dir[] = 'includes/my_smarty_plugins';

?>


    

Example 12.2. 複数の $plugins_dir


<?php

$smarty->plugins_dir = array(
                       'plugins', // デフォルトは SMARTY_DIR の配下
                       '/path/to/shared/plugins',
                       '../../includes/my/plugins'
                       );

?>


    

Comments
No comments for this page.
Post a Comment
All comments are moderated. Support questions are ignored, use the forums instead.
Author:
Email: (not shown)
What is 19 plus 8? (Are you human?)

Sponsors [info]

Cheap Website Hosting @hostdone.com
Cheap Hosting @HostsVault
email marketing @ActiveCampaign
broadband deals @BroadbandGenie
Best UK Web Hosting @webhost.uk.net
Reliable UK and US Web Hosting @rshosting.com
Cheap US and UK Web Hosting @infrenion.com
I.T Certification Exams @pass-guaranteed.com
Certification Practice Tests @firsttrycertify.com
Certification Practice Exam Questions @ace-it-certifications.com
Broadband Speed Test @broadbandspeed.co.uk
bulk email software @americaint.com