| referrer() | ใช้คืนค่า action ที่ถูก request มา |
|---|---|
| is_ajax() | ใช้ตรวจสอบว่าเป็นการ request ของ ajax ใช่หรือไม่ |
| method() | ใช้คืนค่า วิธีการ request เช่น post, get |
method:referrer ();
return type:string
special:static
content:ใช้คืนค่า action ที่ถูก request มา
example:echo request::referrer ();
method:is_ajax ();
return type:boolean
special:static
content:ใช้ตรวจสอบว่าเป็นการ request ของ ajax ใช่หรือไม่
example:if ( request::is_ajax () ) { echo "Ajax Request."; } else { return "Common Request"; }
method:method ();
return type:string
special:static
content:ใช้คืนค่า วิธีการ request เช่น post, get
example:echo request::method ();