0

I am new in Symfony2. I want to write for learning something like library (site will have part for users and secure part for admins with different designs and functionality). Should I create different bundles (like UserBundle or AdminBundle)? Or I should create one bundle. As in Zend Framework (I create 2 modules for user and admin). Thanks.

1 Answer 1

2

Since you're speaking of different designs and functionality, I assume the two parts won't really have much in common - at least from a front-end point of view. What will be shared essentially sums up to DB access, etc. - which is pretty much global stuff.

So yup, I'd go with two bundles, it'll be even more instructive to you IMHO.

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

2 Comments

Thanks. I think like you, but I wasn't sure :)
And if you ever need to access some Controller or anything from the other bundle, you still can as long as you use the namespaces properly. :)

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.