Adding title/subject to FOSCommentBundle

Discuss Symfony 2 bundles here

Moderators: tiagojsag, dcobalt

Adding title/subject to FOSCommentBundle

Postby 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!
Helmet
Junior Member
 
Posts: 7
Joined: Wed Feb 13, 2013 12:34 am

Return to Bundles discussion

Who is online

Users browsing this forum: No registered users and 1 guest