zm455 zm455 - 1 month ago 18
PHP Question

FosMessageBundle: finding route for creating a new message

I have installed FOSMessageBundle. I think my installation is correct. No error on doctrine:generate:entities neither on doctrine:schema:update.

I see in ressources/routing.xml there is this route:

<route id="fos_message_thread_new" path="/new">
<default key="_controller">FOSMessageBundle:Message:newThread</default>
</route>


My problem is I don't understand how to run this route ...

I tried:

http://localhost/mySuperProject/web/app_dev.php/new
http://localhost/mySuperProject/web/app_dev.php/new/thread
http://localhost/mySuperProject/web/app_dev.php/thread/new
http://localhost/mySuperProject/web/app_dev.php/thread


I have also tried to run the same routes replacing "thread" in the url by "message" but no route got found

Any help please ?

Answer

Maybe try use the debug:router command. It should shows you details for the route (including the full path of the route).

app/console debug:router fos_message_thread_new