我需要一些帮助,因为我没有成功找到路线问题的根源。
这是我的routing.yml
:
gstyle39VideothequeBundle:
resource: "@gstyle39VideothequeBundle/Resources/config/routing.yml"
prefix: /videotheque
routing.yml
在VideothequeBundle/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");
}
}
就我而言,我做了一个“cache:clear”,一个检测到我的路由的“router:debug”:
VideothequeBundle_homepage ANY /videotheque/
我也手动删除了文件夹app/cache
...