Controller/Product/ProductAdminController.php
public function detailAction($id)
    {
        $product = $this->container->get('vespolina.product_manager')->findProductById($id);

        if (!$product) {
            throw new NotFoundHttpException('The product does not exist!');
        }

        return $this->container->get('templating')->renderResponse('VespolinaCommerceBundle:Product:show.html.'.$this->getEngine(), array('product' => $product));
    }
public function detailAction($id)
    {
        $product = $this->container->get('vespolina.product_manager')->findProductById($id);

        if (!$product) {
            throw new NotFoundHttpException('The product does not exist!');
        }

        return $this->container->get('templating')->renderResponse('VespolinaCommerceBundle:Product:show.html.'.$this->getEngine(), array('product' => $product));
    }
public function detailAction ( $ id ) { $ product = $ this -> container -> get ( 'vespolina.product_manager' ) -> findProductById ( $ id ) ; if ( ! $ product ) { throw new NotFoundHttpException ( 'The product does not exist!' ) ; } return $ this -> container -> get ( 'templating' ) -> renderResponse ( 'VespolinaCommerceBundle:Product:show.html.' . $ this -> getEngine ( ) , array ( 'product' => $ product ) ) ; }
Show one product by object id
Show one product by object id