Name
addPluginsDir() — add a directory to the list of directories where plugins are stored
Description
Smarty addPluginsDir(string|array plugins_dir);
Example 14.2. addPluginsDir()
<?php // add directory where plugins are stored $smarty->addPluginsDir('./plugins_1'); // add multiple directories where plugins are stored $smarty->setPluginsDir(array( './plugins_2', './plugins_3', )); // view the plugins dir chain var_dump($smarty->getPluginsDir()); // chaining of method calls $smarty->setPluginsDir('./plugins') ->addPluginsDir('./plugins_1') ->addPluginsDir('./plugins_2'); ?>
See also
getPluginsDir()
,
setPluginsDir()
and
$plugins_dir
.
Comments
by Flip on Nov 17, 2011 at 4:40
Setting your include path by either of these 3 options do not help:
1. ini_set('include_path', 'paths'); // for older PHP versions
2. set_include_path('paths'); // for newer PHP versions
3. setting include_path = "paths" in php.ini
You have to set either the full path or the path relative to the script execution directory.
I don't know why, i feel like setting an include path should work.