本文介绍了你认为 Zend 框架没有遵循 Symfony 的 Bundle 原则吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从它是 v1.6 以来,我一直在使用 ZF,我对它非常满意,但阅读了有关 symfony 及其捆绑原则的信息:

I have been working in ZF since it was v1.6 and i am pretty happy with it , but reading about symfony and its bundle principle :

使 sumfony Bundle 更加清晰:

to make sumfony Bundle more clear :

http://docs.symfony-reloaded.org/quick_tour/the_big_picture.html

但是什么是捆绑包?你所有的代码在 Symfony2 项目中写的是成束地组织起来.在 Symfony2 中说,bundle 是一个结构化的集合文件(PHP 文件、样式表、JavaScripts,图像,...)实现单个功能(一个博客,一个论坛,...)并且可以很容易地与其他开发人员共享.在我们的例如,我们只有一包,HelloBundle.

我通过在模块中组织我的代码来使用相同的想法,但这真的很痛苦

i was using the same idea by organizing my code in modules , but this is really painful

任何主体对 ZF 都有相同的 bundle 实现???

any body has same bundle implementation for ZF ???

推荐答案

已经做了一些努力来解决这个问题,但主要是 PITA 在 ZF 中做到这一点.但是您实际上可以使用 Symfony 的基础结构,并且仍然可以使用所有 Zend 的类.

There has been some effort to archieve this, but mainly it's PITA to do this in ZF. But you can actually use the Symfony's infrastructure and still use all Zend's classes.

这篇关于你认为 Zend 框架没有遵循 Symfony 的 Bundle 原则吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 15:31