symfony2 syntax error

tommynemec

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