开发者

Using Symfony, sfDoctrineGuardPlugin plugin, How can i customise sf_content? Using partials?

开发者 https://www.devze.com 2023-02-09 14:03 出处:网络
I a开发者_运维知识库m using symfony 1.4.8 with sfDoctrineGuardPlugin for my backend. My question is how can i customise sfDoctrineGuardPlugin\'s default content? For example, how can i do something o

I a开发者_运维知识库m using symfony 1.4.8 with sfDoctrineGuardPlugin for my backend.

My question is how can i customise sfDoctrineGuardPlugin's default content? For example, how can i do something on the page between filter and table (on the left hand site)? Or, how can i customize table (http://goo.gl/ZmRey)?

I cannot find any solution for using partials on backend. Is there any way to use partials/components/slots on backend?

I hope you understand my question and tell me a way.

Thanks for your answer(s), Erman


Partials, components and slots are no different on the back-end to the front-end - your "backend" is just another Symfony application. From the screenshot you gave, it looks like you're looking to customise the admin generator theme.

The quickest way to get started with this is to look in your cache/appname/ folder and see the automatically-generated modules here, with all the template files, partial files and so on. You can then create an empty module in your application, and override select parts of the theme with whatever you want to change. See this part of the Symfony docs for a full list of partials etc, and how to go about overriding them in more detail.

In the specific case of sfDoctrineGuardPlugin-module pages, these can be overrided in the same way as normal modules - simply create eg an sfGuardAuth module and override the selected parts of the module you want to.

If you want to go further and create your own admin generator theme, this is a bit more advanced. Here I will shamelessly promote a blog post I wrote last year ;-) John Cleveley's presentation also provides some great tips.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号