Open z0om opened 4 years ago
Hi! You must created fos_comment.yaml in config/packages and set orm
fos_comment:
db_driver: orm
Sorry, I though I have replied.
I have a other issue:
An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "fos_comment_get_threads" as such route does not exist.").
Route should be set in the routing config file config/routes.yaml
fos_comment_api:
type: rest
resource: "@FOSCommentBundle/Resources/config/routing.yml"
prefix: /api
defaults: { _format: html }
Thanks @srdjan-martinov, no more issue but nothing is displayed :(
You can see my code here : https://github.com/z0om/FOSCommentBundle
Hello,
I followed your documentation but I have this issue 'The child node "db_driver" at path "fos_comment" must be configured.'
What I did.
➡ config/config.yaml
➡ src/Entity/Comment.php
➡ src/Entity/Thread.php
➡ templates/index.html.twig
I inserted this part :
{% include '@FOSComment/Thread/async.html.twig' with {'id': 'foo'} %}
Nothing else, neither make:migration...
Thank for helping