PHP Manual

PEAR Manual

Smarty Manual

PostgreSQL

MySQL Manual

Perl Manual

$plugins_dir

this is the directory (or directories) where smarty will look for the plugins that it needs. default is "plugins" under the smarty_dir. if you supply a relative path, smarty will first look under the smarty_dir, then relative to the cwd (current working directory), then relative to the php include_path. if $plugins_dir is an array of directories, smarty will search for your plugin in each plugin directory in the order they are given.

technical note: for best performance, do not setup your $plugins_dir to have to use the php include path. use an absolute pathname, or a path relative to smarty_dir or the cwd.

example 12-1. appending a local plugin dir

<?php

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

?>

example 12-2. multiple $plugins_dir

<?php

$smarty
->plugins_dir = array(
                       
'plugins'// the default under smarty_dir
                       
'/path/to/shared/plugins',
                       
'../../includes/my/plugins'
                       
);

?>