Get Smarty

Donate

Paypal

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

getPluginsDir() — 取得插件目录

说明

array getPluginsDir();

Example 14.27. getPluginsDir()


<?php

// 设置一些插件目录
$smarty->setPluginsDir(array(
    './plugins',
    './plugins_2',
));

// 获取全部插件目录
$config_dir = $smarty->getPluginsDir();
var_dump($config_dir); // 数组

?>

   

参见 setPluginsDir(), addPluginsDir()$plugins_dir.

Comments
No comments for this page.

Advertisement