title: symfony Template's name in render()
body: <p>I'm trying to create login page, and i want just to test Doctrine if i'ts working or not but i faced this probleme with template's Location so this is my code</p>
  
  <pre><code>    namespace Login\loginBundle\Controller;
      use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  class LoginController extends Controller
  {
         public function loginAction()
  {
      $username="username";
      $password="password";
      $em=$this-&gt;getDoctrine()-&gt;getEntityManager();
      $repository=$em-&gt;getRepository('Login\loginBundle\Entity\Login\Utilisateur');
  
      $user=$repository-&gt;findOneBy(array('username'=&gt;$username,'password'=&gt;$password));
  
      if($user){
          return $this-&gt;render('Login\loginBundle\Resources\views\Default\index.html.twig',array('name'=&gt;$user-&gt;getNom()));
      }
      else{
          return $this-&gt;render('Login\loginBundle\Resources\views\Default\index.html.twig',array('name'=&gt;'login failed'));
      }
  
  } 
  </code></pre>
  
  <p>This is the Location of my template
  Login\loginBundle\Resources\views\Default\index.html.twig</p>
  
  <p>and this is the error i got :</p>
  
  <pre><code>    Unable to find template "Login\loginBundle:Default:index.html.twig".
      500 Internal Server Error - InvalidArgumentException
      3 linked Exceptions:
      Twig_Error_Loader »
      InvalidArgumentException »
      InvalidArgumentException »
  
      [4/4] InvalidArgumentException: Unable to find template                   "Login\loginBundle:Default:index.html.twig".   +
  
      [3/4] Twig_Error_Loader: Unable to find template "Login\loginBundle:Default:index.html.twig".   +
  
       [2/4] InvalidArgumentException: Template name "Login/loginBundle:Default:index.html.twig" is not valid.   +
  
       [1/4] InvalidArgumentException: Bundle "Login/loginBundle" does not exist or it is not enabled. Maybe you forgot to add it in the registerBundles() method of your AppKernel.php file?   +
  </code></pre>
  
  <p>thank for your help </p>