title: No route found for "GET /portfolio
body: <p>I am creating a very basic static page in symfony2 but I am getting no route found error and i already defined the route for my page.</p>
  
  <p>My controller</p>
  
  <pre><code>#src/IDP/IDPBundle/Controller/PortfolioController.php
  &lt;?php
    namespace IDP\IDPBundle\Controller;
    use Symfony\Bundle\FrameworkBundle\Controller\Controller;
    class PortfolioController extends Controller
    {
     public function indexAction()
     {
      return $this-&gt;render('IDPIDPBundle:Portfolio:index.twig');
     }
    }
  </code></pre>
  
  <p>My routing.yml file</p>
  
  <pre><code>#src/IDP/IDPBundle/resources/config/routing.yml
  IDPIDPBundle_portfolio:
  pattern:  /portfolio
  defaults: { _controller: IDPIDPBundle:Portfolio:index }
  requirements:
      _method:  GET
  </code></pre>
  
  <p>My routing file in app</p>
  
  <pre><code>#app/config/routing.yml
  IDPIDPBundle:
  resource: "@IDPIDPBundle/Resources/config/routing.yml"
  prefix:   /
  
  # Internal routing configuration to handle ESI
  #_internal:
  #   resource: "@FrameworkBundle/Resources/config/routing/internal.xml"
  #   prefix:   /_internal
  </code></pre>
  
  <p>and when I try this url in the browser the symfony welcome page comes</p>
  
  <pre><code> http://project.dev/app_dev.php/
  </code></pre>
  
  <p>but when I try </p>
  
  <pre><code>http://project.dev/app_dev.php/portfolio
  </code></pre>
  
  <p>it give no route found error </p>
  
  <p>What I m doing wrong here ?</p>
  
  <p>any ideas please ?</p>