Syffony2为Grewar Captcha Bundle定制主题

[英]Symfony2 custom theme for Grewar Captcha Bundle


I use GregwarCaptchaBundle to generate captcha in Symfony 2.3.2. But I don't know how to custom theme for it, I don't want to use the default theme, it wasn't fit with my template. I can edit the default its theme, but I think it's not a good idea, because we can't reuse for many template. Can somebody tell me how to do it. Thanks very much.

我使用GregwarCaptchaBundle在Symfony 2.3.2中生成验证码。但我不知道如何自定义主题,我不想使用默认主题,它不适合我的模板。我可以编辑默认的主题,但我认为这不是一个好主意,因为我们无法重复使用许多模板。有人可以告诉我该怎么做。非常感谢。

1 个解决方案

#1


1  

Override like any other view in Symfony. Create file app/Resources/GregwarCaptchaBundle/views/captcha.html.twig And put down your changes following this template.

像Symfony中的任何其他视图一样覆盖。创建文件app / Resources / GregwarCaptchaBundle / views / captcha.html.twig并按照此模板放下您的更改。

智能推荐

注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.silva-art.net/blog/2013/08/21/52f9a41fed1399a91ba7099e07b7f0bb.html



 
© 2014-2019 ITdaan.com 粤ICP备14056181号  

赞助商广告