How to best structure your application in symfony 2

I started using Symfony 2 after having experience with 5 php frameworks like Zend, CodeIgniter, Fuel, Yii and Cake. I am very confused about how to structure my project as best I can. First of all, I am confused about working with bundles. Are the bundles some kind of modules used in other frameworks? Basically I have my application and everything is still stored in bundles. If I want to do some helper functions as well as some libraries and abstract classes, do I just create a new set for them?

+3


source to share


2 answers


See Bundle Structure and Best Practices article for basic ideas on package structure.

I recommend having only one application bundle. I call it AppBundle

.



Plus, you don't need to have everything in bundles. See this question for details .

+2


source


Lots of other discussions on this subject:



+1


source







All Articles