Hi Nikita
I'm just starting out with Symfony2 and I am trying to figure out
something similar at the moment. From what i could make out in the
documentation* and also in by going through posts on this list, it
would seem that the idea is to not have multiple applications but
rather use different namespaces(?).
*Symfony2 documentation:
"In a Symfony2 project, you only need to create one application (a
blog application, an intranet application, ...). Most of the time, if
you want to create a second application, you might instead create
another project and share some bundles between them."
Here is what I am doing:
Folder structure:
|-app
|-source
|-Symfony
|-SymfonyBundles
|-Mysite
|-Blog
|-BlogBackendBundle
|-BlogFrontendBundle
|-BlogApiBundle
|-User
|-UserFrontEndBundle
|-UserBackendBundle
|-UserApiBundle
|-Vendor
|-ThirdPartyBundles
|-web
|-app.php
I have no Idea if this is correct or even if it is going to work the
way I hope it will and have no idea how I am going to implement
different authentication methods for these, so if some else has a
better solution please let us know.
Regards
Wikus
On Feb 11, 7:13 pm, Nikita Korotaev <[email protected]> wrote:
> HI everyone,
>
> Screening through the presentations from the San-Francisco
> conferencehttp://www.symfony-project.org/blog/2011/02/10/symfony-live-san-franc...
> there were a few slides that suggesting you to how to divide you website on
> Applications and Bundles. They mention that it is better to have different
> applications for Frontend, for mobile version, for API....
>
> Let's describe the use-case, and see how it's better to organise the complex
> website into Applications and Bundles.
> Let's take basecamphq.com and imagine that it was made with Symfony2. How
> would you organise your Symfony folder?
> You see that their main website interface of the basecamphq.com is very
> different from the subdomain interface of the
> *.basecamphq.com(customer.basecamphq.com). Hence I think it deserves
> separate application.
> They also have mobile version.
>
> So should Symfony folder be smth like this:
>
> ---
> |
> |-main
> |-subdomain
> |-mobile
> |-src
> |
> |-main
> |-mainBundels
> |-subdomain
> |-subdomainBundels
> |-mobile
> |-mobileBundels
> |-vendor
> |-ThirdPartyBundles
> |-web
> |-main.php
> |-subdomain.php
> |-mobile.php
>
> In .htaccess you will choose which application to use, depending on your
> URL. Root folders main/,subdomain/, mobile/ contain their own configs,
> registering their bundles. And in src/ each application has their own
> Bundles. But in case of mobile-version I don't understand why in
> presentation it was suggested to use separate application, as only views
> will be different
>
> That was only my idea. So how would you organise website like this? What is
> your suggestions?
>
> Regards,
> Nikita
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en