Hi Joel,

I'm experiencing the exact same problem right now.

I've decided to split my app into several sub apps, sharing the same
core, the same config files, and the same models.

My directory structure looks like :

-subapps
--admin  <-- each of those is a CakePHP app folder
--mobile
--web
--webservices

-shared
--cakephp <--cake core and vendors goes here
--myapp  <-- shared config and models for all the sub apps
---config
---models

-www
--admin  <-- each of those is accessible as a subdomain,
--mobile <-- example : mobile.myapp.com
--web
--webservices
--shared <-- shared resources, like images, etc...

So far, this works quite well, but it has some drawbacks. It breaks
the cake bake console, for example, as it can't find the config files.

If anyone has suggestions on this topic, I'll be glad to take them.

Best,

Greg

On Jan 20, 5:06 am, Joel <joel.pear...@gmail.com> wrote:
> Hi,
>
> I've used CakePHP for a few reasonably simple projects, but now I'm
> about to start work on a project which is a bit more complicated.
> This project is going to have 4 different interfaces depending on the
> type of user. Ie Agent, Participant, Trainer and Admin.
>
> Previously I have used the admin feature of CakePHP, which worked
> great when there was the public site and the admin site.  But now with
> 4 separate sites, but with significant amounts of shared code, I'm not
> sure what the best way to layout the project is?
>
> For example all of the portals will share the same model, but each
> portal will have varying degrees of access to the data.
>
> At work we use Java a lot, and if I was doing it in Java I'd probably
> use a Session Bean to handle all the shared business logic, but such
> concepts don't appear to directly exist in CakePHP.
>
> I see that cakephp has vendors and plugins, but I'm not sure if that
> is what they are meant for.  Plugins don't really seem to be the right
> thing, because they appear to be quite independent.
> But vendors also seem to be for encapsulated pieces of functionality.
>
> Has anyone had any experience with multiple portals sharing the same
> models and views (to some extent, maybe using Elements or something)?
>
> Thanks,
>
> -Joel
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to