<?php
class Controller_Sample extends Controller
{
public function get_index()
{
$body = Input::json(); // or Input::xml();
}
}
内部的には file_get_contents('php://input')
がコールされてる。
More than 5 years have passed since last update.
<?php
class Controller_Sample extends Controller
{
public function get_index()
{
$body = Input::json(); // or Input::xml();
}
}
内部的には file_get_contents('php://input')
がコールされてる。
Register as a new user and use Qiita more conveniently