2012-07-30 5 views
0

경로 문제의 근원을 찾지 못해 도움이 필요합니다.Symfony 2 - "GET/videotheque"에 대한 경로를 찾지 못했습니다.

여기 내 routing.yml입니다 :

gstyle39VideothequeBundle: 
    resource: "@gstyle39VideothequeBundle/Resources/config/routing.yml" 
    prefix: /videotheque 

routing.ymlVideothequeBundle/Resources/config/에서 :

VideothequeBundle_homepage: 
    pattern:/
    defaults: { _controller: gstyle39VideothequeBundle:Videotheque:index } 

내 컨트롤러 : 나는 "캐시 : 투명"을 한 내 일부를 들어

<?php 

namespace gstyle39\VideothequeBundle\Controller; 

use Symfony\Bundle\FrameworkBundle\Controller\Controller; 
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; 
use Symfony\Component\HttpFoundation\Response; 

class VideothequeController extends Controller 
{  
    public function indexAction() 
    { 
     return new Response("Kikoo"); 
    } 
} 

, 내 경로를 감지 한 "router : debug":

0 나는 또한 수동으로 폴더 app/cache을 삭제
VideothequeBundle_homepage ANY /videotheque/ 

... 당신은 응용 프로그램 전역 routing.yml (응용 프로그램/설정/routing.yml)에 라우팅 정의를 추가하지 않은 이럴

+0

내 라우팅 정의에서

봐 : debug' 당신이 당신의 URL의 끝에 슬래시를 추가해야합니다, 출력된다. – gilden

+0

결말'/'가 누락 되었습니까? 경로는'http : // yourpage.local/videotheque /'이어야합니다 (끝 부분에주의하십시오). – Sgoettschkes

+0

테스트했지만 오류가 여전히 여기에 있습니다 –

답변

관련 문제