奏鸣曲管理员 - 无标题 [英] Sonata Admin - No Header
本文介绍了奏鸣曲管理员 - 无标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我扩展了SonataAdminBundle::standard_layout.html.twig,它向我展示了没有标题/菜单的管理主题.在调试代码admin_pool"未定义后,我从控制器的admin_pool传递但仍未定义.
I extends "SonataAdminBundle::standard_layout.html.twig and it show me admin theme without header/menu. After the debug code "admin_pool" is not defined I passed from admin_pool from the controller but still not defined.
你能告诉我我错过了什么吗?
Can you please tell me what am I missing?
推荐答案
我自己使用下面的代码解决了 header 的问题
I solved header's problem myself using below code
$admin_pool = $this->get('sonata.admin.pool');
return $this->render('ProjectBundle:Controller:page.html.twig',array('admin_pool' => $admin_pool));
这篇关于奏鸣曲管理员 - 无标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文