开发者

Cakephp - integrating two applications

I am build a trade center, and I need two frontend applications for it. The first is for clients. the second is for stores.

One way is to create two authentication engines and selective routing - if you are a store "go here.." if not - "go there".

The other way is to create two applications: The main domain will be for the clients and will have auth engine just for them. they will have 0 access to management. And a sub domain with complete mv开发者_如何转开发c for storos.

insights before i start?


Normally, it's done in one app with auth and prefix-routings. And I suggest you do this way.

You can use 2 separate apps, as long as all the data you want to share are in one database (that both apps connect to): no shared img folder would be the first obvious disadvantage. There also might be more problems down the road, as this is not a common way to manage user roles.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜