External server codeigniter code php -
is there way use controller hosted on 1 server , use in other server b
i thinking create controller on host b , use
include_once("http://www.server2.com/php/ci/index.php/controller/function");
supposing have mirror database on host (b host use same database using data server) work?
what models?
server application | | -----> controller | | ------> control_a.php server b application | | -----> controller | | ------> control_b.php(use control_a.php code)
you can using restful services in codeigniter.
Comments
Post a Comment