在 smarty version3 中,我在文件夹结构中看到我们有 2 个插件目录应该用于创建自定义插件功能?

in smarty version3 I see in folder structure we have 2 plugin directory which should use for create custom plugin function?

see file structure in screenshot atachment 朋友们好,

I see in smarty template version3 two plugin directory.
one into project folder and other into libs. 
In libs folder we have plugins and sysplugins directory. 

My question is I need to create a custom function so I need to put new file into which directory is best way?

Both way working I checked but which is the best way to put custom plugin file in which directory? 

您可以将插件放在任何已添加到 Smarty plugins_dir 的目录中,但查看您的屏幕截图,您正在查看的“其他”插件目录似乎是演示应用程序的一部分包含在 Smarty 发行版中。您应该完全删除演示目录并将您的插件放在 smarty/libs/plugins 目录中。