1

Can you direct me to some tutorials or helpful information regarding Symfony2 and common components among similar projects? I have two projects that will use a tremendous amount of the same code (mostly backend logic/user handling/checkouts), but there will be quite a different in the frontend templates, display and functionality.

Currently I have three folders with symlinks (Project 1, Project 2, and Symfony Base). Is this the best setup? Recommendations for doing it better?

1 Answer 1

3

Symfony 2 Bundles are what you want here. Wrap up all the stuff you want to share between projects in a bundle installed in to both - then build the project specific UI on top of it.

Would recommend on the Symfony 2 docs: http://symfony.com/doc/2.0/cookbook/bundles/index.html

Sign up to request clarification or add additional context in comments.

1 Comment

For development, composer would slow down the workflow a lot. Also the IDE wont recognise a lot of the used settings when you keep the bundles developed seperatly

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.