<?php


namespace Blogger\BlogBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
//\Blogger\BlogBundle\Entity\Client


class ClientController extends Controller{
    
    
    /**
     * Show one client.
     *
     * @Route("/client/{id}", name="client_show")
     * @Method("GET")
     */
    public function showAction($id)
    {
        
        $em = $this->getDoctrine()->getManager();

        $client = $em->getRepository('BloggerBlogBundle:Client')->find($id);
        
        if (!$client) {
            throw $this->createNotFoundException('Unable to find Client post.');
        }
     

        return $this->render('BloggerBlogBundle:Client:show.html.twig', array(
            'client'      => $client,
         
        ));
    }
    
}
