• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using multiple database on same application and issue with URI Routing

#1
I am working on a small web application. In my application I follow the following approach.

Small Over view on system

1. The Application will be hosted on the server for example (www.example.com )
2. Clients such as Microsoft, Cocacola, IBM.... etc will sign up. And the clients will access the application by using url like this ( www.example.com/ibm )
3. Each client will have separate database to store their data.
4. If the employees of the client want to login into the system then the url pattern should be like this :
(www.example.com/ibm/user/login)
ibm - is the client
user - is controller
login - is method of user controller

How to achieve this?

Thanks in advance
Reply

#2
3) I would store it in a separate table if this is in your design ok, so its easyier to use.
4) You should go with CI3 and create a subfolder in your controller directory

PHP Code:
/controllers/ibm/User.php
/controllers/microsoft/User.php
... 

You can access it then by http://www.example.com/ibm/user/login etc.

Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.