在没有实际框架的情况下使用 Zend Framework 组件? [英] Use Zend Framework components without the actual framework?
问题描述
我想知道是否有人知道如何使用 Zend 框架的某些组件而不必实际使用该框架.例如,我想使用他们的 Zend_Validate 组件,但不要不想要框架的开销,因为它是一个小的单页脚本.
I was wondering if anyone knew how to use some components of the Zend Framework without having to actually use the framework. For example, I would like to use their Zend_Validate components, but don't want the overhead of the framework as it's a small one-page script.
这是否可以轻松完成,如果可以,是否有关于如何完成的指南/教程?
Can this be easily done, and if so, are there guides/tutorials on how to accomplish it?
推荐答案
Zend 框架组件有意设计为与框架本身松散耦合.
Zend framework components are intentionally designed to be loosely couple from the framework itself.
Zend 的组件结构框架有些独特;每个组件的设计很少对其他组件的依赖.这个松散耦合的架构允许开发人员使用组件个别.我们经常把这称为随意使用"设计.[从这里]
The component structure of Zend Framework is somewhat unique; each component is designed with few dependencies on other components. This loosely coupled architecture allows developers to use components individually. We often call this a "use-at-will" design. [from here]
这是一个用于提取特定组件及其依赖项的工具 以在您的应用程序中使用.
Here's a tool for pulling out specific components and their dependencies to use in your application.
这篇关于在没有实际框架的情况下使用 Zend Framework 组件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!