gpt4 book ai didi

php - 在没有实际框架的情况下使用 Zend Framework 组件?

转载 作者:可可西里 更新时间:2023-11-01 12:48:13 26 4
gpt4 key购买 nike

我想知道是否有人知道如何在不必实际使用框架的情况下使用 Zend 框架的某些组件。例如,我想使用他们的 Zend_Validate组件,但不需要框架的开销,因为它是一个很小的单页脚本。

这是否可以轻松完成,如果可以,是否有关于如何完成它的指南/教程?

最佳答案

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在您的应用程序中使用。

关于php - 在没有实际框架的情况下使用 Zend Framework 组件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1402989/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com