доброго дня!
нужна помощь, простой запрос
выдает ошибку
помогите пожалуйста решить трабл, чтобы запрос обрабатывался верно
а так же, если кто знает .. как сделать так чтобы обрабатывались только POST запросы
готов отблагодарить материально
нужна помощь, простой запрос
Код:
<?php
class Integration_ControllerPublic_Laravel extends XenForo_ControllerPublic_Abstract
{
public function actionIndex()
{
return new XenForo_Phrase('Test');
}
public static function getSessionActivityDetailsForList(array $activities)
{
return new XenForo_Phrase('viewing_chat_content');
}
}
выдает ошибку
Код:
HTTP/1.1 500 Internal Server Error Server: nginx/1.12.1 Date: Mon, 23 Apr 2018 13:36:57 GMT Content-Type: text/html; charset=UTF-8 Transfer-Encoding: chunked Connection: keep-alive X-Powered-By: PHP/5.6.31 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-control: private, max-age=0 Set-Cookie: xf_session=d69192bf45c2855778bbf7ac5e0622e4; path=/; httponly X-Frame-Options: SAMEORIGIN X-Xss-Protection: 1
XenForo
Server Error
Invalid controller response from Integration_ControllerPublic_Laravel::actionIndex
XenForo_FrontController->_handleControllerResponse() in XenForo/FrontController.php at line 377
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 152
XenForo_FrontController->run() in /var/www/demo1/data/www/site/index.php at line 13
помогите пожалуйста решить трабл, чтобы запрос обрабатывался верно
а так же, если кто знает .. как сделать так чтобы обрабатывались только POST запросы
готов отблагодарить материально