【发布时间】:2020-04-07 03:54:21
【问题描述】:
在这种情况下我是新手。我创建了一个路由和控制器。这是我的代码:
<?php
// /src/Acme/DemoBundle/Controller/MediaCRUDController.php
namespace AppBundle\Controller;
use Sonata\AdminBundle\Controller\CRUDController;
class RatingController extends CRUDController
{
public function indexAction()
{
eturn $this->render('CCApplicationBundle:Default:rating.html.twig');
}
}
还有我的路线:
admin_dashboard_rating:
path: /rating
defaults: { _controller: AppBundle:Rating:index }
有没有办法可以嵌入到奏鸣曲管理员的链接?
请帮忙。
谢谢
【问题讨论】:
标签: php symfony sonata-admin