web\BadRequestHttpException: Unable to verify your data submission. in /var/www/html/vendor/yiisoft/yii239 [60.54.140.90][1550][sf4vnas08uip2fd2avrqkdstd0][info][application] $_GET = []
'_csrf-frontend] 'reque
我试图创建一个获取用户IP地址的快捷方式,我在下面的protected/helpers/shortcut.php中创建了这个函数function getIP() return CHttpRequest::getUserHostAddress();我得到这个错误是因为我把我的php.ini设置为严格的。而getUserHostAddress()不是静态函数。
Strict Standards: Non-static method CHttpRequest::getUserHostAddress() should not be called stat