Is there a way to use a controller hosted on one server A and use it in other server B
I was thinking to create a controller on host B and use
include_once("http://www.server2.com/php/ci/index.php/controller/function");
supposing I have a mirror database on host A (B host would use the same database but using data from its server) Would that work?
What about models?
SERVER A
application
|
| -----> controller
|
| ------> control_a.php
SERVER B
application
|
| -----> controller
|
| ------> control_b.php(use control_a.php code)