helpers\BaseJson handleJsonError()

handleJsonError() protected static method (available since version 2.0.6)

Handles encode() and decode() errors by throwing exceptions with the respective error message.

protected static void handleJsonError ( $lastError )
$lastError integer

Error code from json_last_error().

throws yii\base\InvalidParamException

if there is any encoding/decoding error.

doc_Yii
2016-10-30 17:05:27
Comments
Leave a Comment

Please login to continue.