Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7971097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:33:44+00:00 2026-06-04T07:33:44+00:00

I am creating a very basic static page in symfony2 but I am getting

  • 0

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.

My controller

#src/IDP/IDPBundle/Controller/PortfolioController.php
<?php
  namespace IDP\IDPBundle\Controller;
  use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  class PortfolioController extends Controller
  {
   public function indexAction()
   {
    return $this->render('IDPIDPBundle:Portfolio:index.twig');
   }
  }

My routing.yml file

#src/IDP/IDPBundle/resources/config/routing.yml
IDPIDPBundle_portfolio:
pattern:  /portfolio
defaults: { _controller: IDPIDPBundle:Portfolio:index }
requirements:
    _method:  GET

My routing file in app

#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

and when I try this url in the browser the symfony welcome page comes

 http://project.dev/app_dev.php/

but when I try

http://project.dev/app_dev.php/portfolio

it give no route found error

What I m doing wrong here ?

any ideas please ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T07:33:45+00:00Added an answer on June 4, 2026 at 7:33 am

    Make sure that the changes you made is affected in the root of you project not only in the work space of eclipse. Change your eclipse work space to your project root and then

    IDPIDPBundle:
     resource: "@IDPIDPBundle/Resources/config/routing.yml"
     prefix:   /
    
    IDPIDPBundle_portfolio:
     pattern:  /portfolio
     defaults: { _controller: IDPIDPBundle:Portfolio:index }
     requirements:
     _method:  GET
    

    Hope it will help

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The question may be very basic but I am not getting clue anyways ...
I'm creating a very simple django upload application but I want to make it
I am currently creating a very basic piece of DBMS software - I would
This seems like a very basic question but I couldn't find any help on
I have an ASP.NET app, very basic, but right now too much code to
I am creating a very basic web browser using JEditorPane just to teach myself
So I'm creating a very basic python game and I need some help with
To help gather a sense of Objective-C I'm creating a very basic connect 4
I'm just learning wcf and can't understand one very basic thing. I'm creating a
This is very basic but thoughtful question i come across in many interviews Why

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.