Welcome Guest, Not a member yet? Register   Sign In
Simple module system for CI3
#3

Another approach - just as something else to consider - is if the Backoffice needs something from the Admins - it gets it just like an API would - but in this case its an "internal" API. i've been surprised by how quickly you can wrap some data up in a JSON array and send it off with a few lines of CURL. you can even wrap database result objects in JSON and codeigniter treats them just the same as if they came from a local model. and you don't need a "rest server" - if this is a private API then you just need two lines of code in the receiving application controller method.

PHP Code:
     $request file_get_contents('php://input');
 
   $customer json_decode($request); 

it also opens up a bunch of options in terms of staging, having different applications on different servers, etc etc.
Reply


Messages In This Thread
Simple module system for CI3 - by josepostiga - 03-31-2016, 06:29 AM
RE: Simple module system for CI3 - by Blair2004 - 03-31-2016, 09:18 AM
RE: Simple module system for CI3 - by cartalot - 03-31-2016, 12:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB