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 8727581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:27:33+00:00 2026-06-13T08:27:33+00:00

I am new to symfony and maybe I am missing something really simple but

  • 0

I am new to symfony and maybe I am missing something really simple but I am not able to spot it. Any help will be much appreciated. I have these two files:

C:\xampp\htdocs\Symfony\src\Apps01\ResourceCalBundle\Resources\config\routing.yml

ResourceCalendar_Login:
    pattern:   /resourcecalendar/login
    defaults:  { _controller: AppsRollerResourceCalBundle:Login:DisplayLogin }

C:\xampp\htdocs\Symfony\src\Apps01\ResourceCalBundle\Controller\LoginController.php

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;

class LoginController
{
public function DisplayLoginAction()
{
    return new Response('<html><body>Hello There!</body></html>');
}
}

Yet when I point my browser to http://example.com/Symfony/web/app_dev.php/resourcecalendar/login I get the following error:

 The autoloader expected class "Apps01\ResourceCalBundle\Controller\LoginController" to be defined in file "C:\xampp\htdocs\Symfony/src/\Apps01\ResourceCalBundle\Controller\LoginController.php". The file was found but the class was not in it, the class name or namespace probably has a typo.
 500 Internal Server Error - RuntimeException 

Can someone point out what I am missing when I can see that the class LoginController is definitely there inside the filer?

Thanks
Al

  • 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-13T08:27:34+00:00Added an answer on June 13, 2026 at 8:27 am

    I think first of all you should define a namespace

    namespace Apps01\ResourceCalBundle\Controller;
    

    as your error told you here:

    “namespace probably has a typo.”

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

Sidebar

Related Questions

I've been using Symfony for a long time but I'm new to Symfony2. After
Maybe I'm missing the obvious but how do I (or can I) add an
Everyday is a new day with Symfony, but I'm loving it! This morning I
Im new to symfony and have some simple questions. I am trying to understand
I don't know why, maybe i am missing some basic logic but I always
I'm pretty new at Symfony 2 and I was wondering something : Let's assume
This is probably an easy question but since I'm new with Symfony it's still
I'm new to Symfony2 and I have maybe a simple question about encoding my
I am new to symfony, so may be it's not a good question... If
New to symfony. I'm designing a report portal. Reports are fetched from an external

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.