Welcome Guest, Not a member yet? Register   Sign In
Json Handling in ViewCI
#2

(This post was last modified: 01-18-2017, 01:35 AM by neuron.)

$json_posts = file_get_contents('http://wordpress-34240-73651-202010.cloudwaysapps.com/wp-json/wp/v2/posts');
$data['posts'] = json_decode($json_posts);
then in /view/post.php  foreach($posts as $key => 
$post){}
Reply


Messages In This Thread
Json Handling in ViewCI - by shakeelahmed.cfs - 01-18-2017, 01:21 AM
RE: Json Handling in ViewCI - by neuron - 01-18-2017, 01:31 AM
RE: Json Handling in ViewCI - by shakeelahmed.cfs - 01-18-2017, 02:49 AM
RE: Json Handling in ViewCI - by shakeelahmed.cfs - 01-18-2017, 05:08 AM
RE: Json Handling in ViewCI - by Diederik - 01-18-2017, 05:00 AM
RE: Json Handling in ViewCI - by shakeelahmed.cfs - 01-18-2017, 05:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB