Welcome Guest, Not a member yet? Register   Sign In
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

(This post was last modified: 12-12-2014, 03:17 AM by Rufnex.)

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




Theme © iAndrew 2016 - Forum software by © MyBB