0

我有用 生成的表格generate:doctrine:crud,它们工作得很好,但看起来不太好。在寻找不同的东西时,我发现了 Sonata Admin 模块。

它具有不同的功能、按钮和非常漂亮的布局,真的很酷。

我的问题是,我怎样才能将它应用到我现有的表格中?它们可以像generate:doctrine:crud那样自动创建吗?

我的理解是我必须重新创建所有表单,手动使用奏鸣曲方法。

4

1 回答 1

1

Soanata Admin is backoffice generator. It's useful to fastly create administration pages and as you said, it uses its own system of Form generation.

What you like in Sonata design is the use of Twitter Bootstrap that is a frontend framework (CSS+JavaScript). You can use it in your own project, without using Sonata.

By overriding native Symfony form rendering with Bootstrap controls elements, you will render nice looking forms too !

于 2012-12-27T08:32:09.897 回答