심포니를 처음 접했을 때 정말 간단한 것을 놓치고 있었지만 어쩌면 그 문제를 발견 할 수 없었습니다. 어떤 도움을 많이 주시면 감사하겠습니다.심포니 컨트롤러 클래스를 찾지 못했습니다.
C : 나는이 두 파일을 \ XAMPP \ htdocs를 \ 심포니 \ SRC \ Apps01 \ ResourceCalBundle \ 자료 \ 설정 \ routing.yml
ResourceCalendar_Login:
pattern: /resourcecalendar/login
defaults: { _controller: AppsRollerResourceCalBundle:Login:DisplayLogin }
C : \ XAMPP \ htdocs를 \ 심포니 \ SRC \ Apps01 \ ResourceCalBundle \ 컨트롤러 \ 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>');
}
}
그러나 나는 다음과 같은 오류 얻을 http://example.com/Symfony/web/app_dev.php/resourcecalendar/login에 브라우저를 가리킬 때 :
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
을
누군가 LoginController
클래스가 필러 안쪽에 확실히 있음을 알 수 있습니까? 당신의 오류가 여기에 당신에게로
감사 알이
고맙습니다. 나는 문서를 읽으려고했으나 그것을 잡지 못했습니다. – la6470