public function detailAction(Request $request)
    {
       
        $cart = $this->getCurrentCart();
        $form = $this->createForm('EcommerceBundle\Form\CartType', $cart);

        return array(
            'cart' => $cart,
            'form' => $form->createView()
        );
    }
public function detailAction(Request $request)
    {
       
        $cart = $this->getCurrentCart();
        $form = $this->createForm('EcommerceBundle\Form\CartType', $cart);

        return array(
            'cart' => $cart,
            'form' => $form->createView()
        );
    }
public function detailAction ( Request $ request ) { $ cart = $ this -> getCurrentCart ( ) ; $ form = $ this -> createForm ( 'EcommerceBundle\Form\CartType' , $ cart ) ; return array ( 'cart' => $ cart , 'form' => $ form -> createView ( ) ) ; }
Displays current cart summary page.
The parameters includes the form .

@param Request
@return Response

@Route("/cart/detail")
@Template("EcommerceBundle:Checkout/cart:detail.html.twig")
Displays current cart summary page . The parameters includes the form .