diff --git a/app/Controllers/BaseController.php b/app/Controllers/BaseController.php index 6f96615..68592db 100644 --- a/app/Controllers/BaseController.php +++ b/app/Controllers/BaseController.php @@ -56,8 +56,8 @@ class BaseController extends Controller { protected function getBlogItems() { // $client = new HTTPClient(); - - $wp_contents = file_get_contents('http://10.0.0.52:5101/'); + $wp_server_api ="http://172.31.4.19:8000/wordpress-data";//http://10.0.0.52:5101/ + $wp_contents = file_get_contents($wp_server_api); //$wp_contents_json = $wp_contents['payload']; // json_encode($wp_contents['payload'],true); // $myObj = JSON.parse($wp_contents); //print_r($myObj);