protected function _detectBrowserLanguage() {// Example implementation to detect browser language $browserLanguage = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
AppController::_detectBrowserLanguage() - APP/Controller/AppController.php, line 105
AppController::beforeFilter() - APP/Controller/AppController.php, line 58
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 248
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 670
ExceptionRenderer::_getController() - CORE/Cake/Error/ExceptionRenderer.php, line 157
ExceptionRenderer::__construct() - CORE/Cake/Error/ExceptionRenderer.php, line 95
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 122
[main] - [internal], line ??
Warning (2): array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer [APP/Controller/AppController.php, line 115]
array_key_exists - [internal], line ??
AppController::_detectBrowserLanguage() - APP/Controller/AppController.php, line 115
AppController::beforeFilter() - APP/Controller/AppController.php, line 58
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 248
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 670
ExceptionRenderer::_getController() - CORE/Cake/Error/ExceptionRenderer.php, line 157
ExceptionRenderer::__construct() - CORE/Cake/Error/ExceptionRenderer.php, line 95
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 122
[main] - [internal], line ??