Is there some examples to implement this? Don't show nothing on my page.
{% include 'FOSCommentBundle:Thread:async.html.twig' with {'id': 'foo'} %}
I don't understand how to place this code and what will show on my page.
And when i place this on my config.yml
assetic:
bundles: [ "FOSCommentBundle" ]
Creates an error:
Unrecognized option "assetic" under "fos_comment".
My configuration:
fos_comment: db_driver: orm class: model: comment: BackEndBundle\Entity\Comment thread: BackEndBundle\Entity\Thread
assetic: bundles: [ "FOSCommentBundle" ]
I assume you have configure the bundle and have created the require classes like this
And Thread.php like this
In your config.yml, you will now have something like this
run the following commands
After this you will have tables in the database for the entities Now include this at top of the template
where you've included this
Clear both dev and prod cache after this step. PS: I have selected the doctrine ORM method