I have the following code:
public function postFormAction(Request $request)
{
$cityId = $request->request->get('shopiousUserBundle_user')['location']['city'];
.....
}
for some reason this is giving me a syntax error, any idea why? When I remove the array indexing to be just like:
$cityId = $request->request->get('shopiousUserBundle_user')
works fine.