开发者

How can I keep just the required files in zend framework for my application?

I'm not sure where to ask this, but frankly I'm using some libraries from the zend framework but at this moment have the entire framework in my library folder. Is there any开发者_JAVA技巧 script or exe out there which go through the application and tell which files are not being used and which are. Theres loads of includes and easy loading going on there.


The files that are included via require_once in the Zend Framework code are mostly required only if they are used.

But if you want to be 100% sure that only the really used ones are loaded (on the fly), use the autoloader in combination with a script that strips all the require_once, as shown in the "Class Loading" part the official performance guide. There is a "How can I eliminate unnecessary require_once statements?" section. And this is a well know ZF optimisation technique, so it should be done anyway.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜