public function showAction($slug)
    {
        $category = $this->getCategoryRepository()->retrieveActiveBySlug($slug);

        if (!$category) {
            throw $this->createNotFoundException('category doesnt exists');
        }

        return $this->render(
            'GenjFaqBundle:Category:show.html.twig',
            array(
                'category' => $category
            )
        );
    }
public function showAction($slug)
    {
        $category = $this->getCategoryRepository()->retrieveActiveBySlug($slug);

        if (!$category) {
            throw $this->createNotFoundException('category doesnt exists');
        }

        return $this->render(
            'GenjFaqBundle:Category:show.html.twig',
            array(
                'category' => $category
            )
        );
    }
public function showAction ( $ slug ) { $ category = $ this -> getCategoryRepository ( ) -> retrieveActiveBySlug ( $ slug ) ; if ( ! $ category ) { throw $ this -> createNotFoundException ( 'category doesnt exists' ) ; } return $ this -> render ( 'GenjFaqBundle:Category:show.html.twig' , array ( 'category' => $ category ) ) ; }
shows questions within 1 category

@param string $slug

@return \Symfony\Component\HttpFoundation\Response
shows questions within 1 category