エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
CakePHP2.1で超簡単にJSONを出力する方法 | tipshare.info
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
CakePHP2.1で超簡単にJSONを出力する方法 | tipshare.info
× Sign in with twitter. You can follow the user and hashtags. Share your tips on social media. Po... × Sign in with twitter. You can follow the user and hashtags. Share your tips on social media. Post relative tips. If you have relative tips, click [Add relative tips] to post. コントローラー内で viewClassをJsonに設定し、JSONに書き出したい変数名を_serializeにセットする。これだけ。 下記の例ではpostsとsome_varの内容がJSONで書き出される。 <?php //app/Controller/PostsController.php class PostsController extends AppController { public function index() { $thi