Controller/PublicController.php
public function pageAction($path)
    {
    	$parts = explode('/', $path);
    	
    	$result = $this->get('asf_document.page.manager')->getRepository()->findBySlug($path);
    	
    	if ( count($result) == 0 ) {
    		throw new NotFoundHttpException('Ooops ! Page not found.');
    	}
    	
    	$page = $result[0];
    	
    	return $this->render('ASFWebsiteBundle:Public:page.html.twig', array(
    		'page' => $page
    	));
    }
public function pageAction($path)
    {
    	$parts = explode('/', $path);
    	
    	$result = $this->get('asf_document.page.manager')->getRepository()->findBySlug($path);
    	
    	if ( count($result) == 0 ) {
    		throw new NotFoundHttpException('Ooops ! Page not found.');
    	}
    	
    	$page = $result[0];
    	
    	return $this->render('ASFWebsiteBundle:Public:page.html.twig', array(
    		'page' => $page
    	));
    }
public function pageAction ( $ path ) { $ parts = explode ( '/' , $ path ) ; $ result = $ this -> get ( 'asf_document.page.manager' ) -> getRepository ( ) -> findBySlug ( $ path ) ; if ( count ( $ result ) == 0 ) { throw new NotFoundHttpException ( 'Ooops ! Page not found.' ) ; } $ page = $ result [ 0 ] ; return $ this -> render ( 'ASFWebsiteBundle:Public:page.html.twig' , array ( 'page' => $ page ) ) ; }
Website Page Controller

@param string $path
@throws \Exception
@return \Symfony\Component\HttpFoundation\Response
Website Page Controller