【发布时间】:2014-11-21 02:23:31
【问题描述】:
我应该如何在 SonataAdminBundle 的列表视图表中添加换行符?
我像这样向我的实体添加了一个函数:
getTest() {
return "test 1 \n test 2";
}
在我的 configureListFields 函数中,我以这种方式添加字段:
$listMapper->add('test', null, array('label' => 'Test'))
我也尝试将类型更改为text、string 和doctrine_orm_text,但没有帮助。
使用<br /> 代替\n 并没有帮助,因为输出被转换为html 实体。
【问题讨论】:
标签: newline symfony-2.1 sonata-admin