Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

symfony get locale from request in controller

use SymfonyComponentHttpFoundationRequest;

public function index(Request $request)
{
    $locale = $request->getLocale();
}
Source by symfony.com #
 
PREVIOUS NEXT
Tagged: #symfony #locale #request #controller
ADD COMMENT
Topic
Name
6+6 =