3

I started using Symfony 2 after having experience with 5 php frameworks like Zend, CodeIgniter, Fuel, Yii and Cake. I am very confused on how to structure my project as better as I can. First of all I am confused in working with bundles. Bundles are some kind of modules used in other frameworks? Bascially I have my application and everything until now is stored in a bundles. If I want to make some helper functions and some libraries and abstract classes, I just make a new bundle for those?

Mythriel
  • 1,360
  • 5
  • 24
  • 45

2 Answers2

2

See the Bundle Structure and Best Practices cookbook entry for basic ideas on the structure of a bundle.

I recommend having just one app specific bundle. I call it AppBundle.

Also, you don't have to have everything in bundles. Check this question for details.

Community
  • 1
  • 1
Elnur Abdurrakhimov
  • 44,533
  • 10
  • 148
  • 133
1

Lots of other discussions on that matter:

Community
  • 1
  • 1
Daniel Ribeiro
  • 10,156
  • 12
  • 47
  • 79