symfony - Symfony2 how to structure a project when there is a lot of entity? -


i have project split in several parts, because have lot of entity(and controllers , forms come them), in relation, , question is, how have structure project need have 1 bundle several subfolder or several bundles because best practice says bundle independent , can deleted, app still works.
thank in advance , sorry low english level.
following diagram summarizes question.

src/ appbundle/             controller/                         customercontroller/                                         custommercontroller.php                                         ...                         salecontroller/                         ... 

or src/ customerbundle/ controller/ salebundle/ controller/ ... best regards toniouch.

use bundles, make them small need be. having one, generic, tightly coupled bundle bad idea because it's hard maintain app grows.

the recommended bundle structure there reason! :)

more info on bundles here: http://symfony.com/doc/current/cookbook/bundles/best_practices.html


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -