在Zend Framework网站上放置插件的位置 [英] Where to put plugins in a Zend Framework website

查看:64
本文介绍了在Zend Framework网站上放置插件的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题很简单:我有一个Zend Framework的控制器插件.

The question is quite simple : I have a controller plugin for Zend Framework.

我应该将其放在库/插件"文件夹中还是应用程序/插件"中.

Should I put it in the "library/Plugin" folder, or in "application/plugins".

(顺便说一句,它现在在库/插件中,但是它可以在Linux和Mac Os X上运行,但不能在Windows上运行,所以我认为这可能不合适)

(btw for now it is in library/Plugin but this works on Linux and Mac Os X, but not Windows so i figured maybe that is not the right place)

谢谢

推荐答案

如果它是 如果它是通用插件(即实用程序类),则放在/library/*中,其中*紧跟 Zend Loader 规则.

If its a controller plugin it goes in "application/plugins".
If it's a general purpose plugin (ie Utility Classes and such) it goes in /library/*, where * follows the Zend Loader rules.

这篇关于在Zend Framework网站上放置插件的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆