text Codeignitor REST

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text Codeignitor REST相关的知识,希望对你有一定的参考价值。

<?
            $errors = $this->form_validation->error_array();
                $response = array(
                    "status" => 'failed',
                    "message" => "Error in Data",
                    "errors" => $errors
                    );
<?
        $book = array(
            "status" => 'success',
            "author" => "David Flanagan",
            "data" => [array (
               "physics" => 35,
               "maths" => 30,	
               "chemistry" => 39
            )]
            "edition" => 6
        );
        $json_response = json_encode($book, JSON_NUMERIC_CHECK);
        echo $json_response;

以上是关于text Codeignitor REST的主要内容,如果未能解决你的问题,请参考以下文章

我们可以在 config/constants.php 文件中触发数据库查询以使常量动态化吗? (PHP Codeignitor)

text REST令牌请求(OAuth 2.0)

text golang rest http

text REST架构链接

text REST Alamofire

text Spring Data Rest