This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Adding title/subject to FOSCommentBundle

Discuss Symfony 2 bundles here

Adding title/subject to FOSCommentBundle

by Helmet » Sat Feb 16, 2013 11:28 pm

I would like to customize FOSCommentBundle to include a subject line for each thread. This is my first shot at extending a vendor bundle. So far I've added the title field to the thread.orm.yml file and associated getters/setters to my entity. I've overridden the comment_new_content.html.twig template in app/Resources/FOSCommentBundle/views/Thread . I get an error when I simply try to reference form.title.

Method "title" for object "Symfony\Component\Form\FormView" does not exist in kernel.root_dir/Resources/FOSCommentBundle/views/Thread/comment_new_content.html.twig at line 39

If I could trouble someone to point out the steps I have missed or point me in the right direction of steps, I would greatly appreciate it!
Junior Member
Posts: 7
Joined: Wed Feb 13, 2013 12:34 am