webERP Forum

Full Version: Multi company root path
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I created 2 companies under 2 different databases. Then when I select each company from company select drop down menu url path won't changed according to database name. But I can log in correctly. But url path always shows default company db name irrespective of the selection.

Please let me know how to correct this.

Thanks,

nirosh
The default DB will always show on the login screen ... as the default!
When you login with a different company you are using the same code and URL of course - just a different DB
(10-04-2014 07:38 AM)phil Wrote: [ -> ]The default DB will always show on the login screen ... as the default!
When you login with a different company you are using the same code and URL of course - just a different DB

Hello Phil,

Thank you so much for your reply. I have two campanies. (1) kth detailing (db=kthdc) (2)kth Service (db=kthservice). And kthdc is selected as Default company ($DefaultCompany = 'kthlerpc_kthdc'Wink. Pls check attached config.php. But my issue is that when I select kthdc or kthservice URL shows http://www.ktherp.com/kthdc/index.php. As you said though we use same coding, URL of the related DB should display. In my case when I select detailing company it should display http://www.kthlerp.com/kthdc/ and for the kth service company http://www.kthlerp.com/kthservice/.

This is my understanding. Orelse I may got it all wrong. Please advice me on this issue.

Best Regards,

Nirosh
Hi,

I have two campanies. (1) kth detailing (db=kthdc) (2)kth Service (db=kthservice). And kthdc is selected as Default company ($DefaultCompany = 'kthlerpc_kthdc. Pls check attached config.php. But my issue is that when I select kthdc or kthservice URL shows http://www.ktherp.com/kthdc/index.php. As you said though we use same coding, URL of the related DB should display. In my case when I select detailing company it should display http://www.kthlerp.com/kthdc/ and for the kth service company http://www.kthlerp.com/kthservice/.

This is my understanding. Orelse I may got it all wrong. Please advice me on this issue.

Best Regards,

Nirosh
No it should display exactly the same URL - but display the data specific to the selected company.
Reference URL's