0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

FuelPHPでAjax使ったときの値の見方

Posted at

Ajax使って非同期でデータのやり取りを実装するとき、
「403エラー出てるけど具体的にどういうエラーなん?」
ってなったときとかに見る方法です。

example.php
$value;//おそらく原因であろう変数
var_dump($value);
exit();

var_dump()は引数の情報(値、型など)を表示する関数です。exit()は現在のスクリプトを終了する言語構造というらしいです。関数とは違うんだとか。
参考→https://www.php.net/manual/ja/function.exit.php

非同期かどうかにかかわらずデバッグするときに使えそうですね。

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?