Warning (2): Missing argument 1 for LanguagesController::set_lang() [APP/Controller/LanguagesController.php, line 114]Code Context * @param $locale - locale
*/
public function set_lang($locale) {
LanguagesController::set_lang() - APP/Controller/LanguagesController.php, line 114
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 92
Notice (8): Undefined variable: locale [APP/Controller/LanguagesController.php, line 120]Code Context // Language prefix.
$default_language = Configure::read('Config.orig_language');
$language_prefix = ($locale == $default_language) ? '/' : '/' . $locale . '/';
$referer = '/'
$default_language = 'eng'
LanguagesController::set_lang() - APP/Controller/LanguagesController.php, line 120
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 92
Notice (8): Undefined variable: locale [APP/Controller/LanguagesController.php, line 120]Code Context // Language prefix.
$default_language = Configure::read('Config.orig_language');
$language_prefix = ($locale == $default_language) ? '/' : '/' . $locale . '/';
$referer = '/'
$default_language = 'eng'
LanguagesController::set_lang() - APP/Controller/LanguagesController.php, line 120
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 92
Notice (8): Undefined variable: locale [APP/Controller/LanguagesController.php, line 126]Code Context
$redirect = $language_prefix;
$this->Session->write('Config.language', $locale);
$referer = '/'
$default_language = 'eng'
$language_prefix = '//'
$redirect = '//'
LanguagesController::set_lang() - APP/Controller/LanguagesController.php, line 126
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 92
Notice (8): Undefined index: scheme [APP/Controller/LanguagesController.php, line 130]Code Context $language_prefix = substr($language_prefix,0,-1);
$redirect = $p['scheme'].'://'.$p['host'].$language_prefix.$p['path'];
$referer = '/'
$default_language = 'eng'
$language_prefix = '/'
$redirect = '//'
$p = array(
'path' => '/'
)
LanguagesController::set_lang() - APP/Controller/LanguagesController.php, line 130
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 92
Notice (8): Undefined index: host [APP/Controller/LanguagesController.php, line 130]Code Context $language_prefix = substr($language_prefix,0,-1);
$redirect = $p['scheme'].'://'.$p['host'].$language_prefix.$p['path'];
$referer = '/'
$default_language = 'eng'
$language_prefix = '/'
$redirect = '//'
$p = array(
'path' => '/'
)
LanguagesController::set_lang() - APP/Controller/LanguagesController.php, line 130
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 92