簡體   English   中英

FosMessageBundle:查找創建新消息的途徑

[英]FosMessageBundle: finding route for creating a new message

我已經安裝了FOSMessageBundle。 我認為我的安裝是正確的。 在doctrine:generate:entities上沒有錯誤,在doctrine:schema:update上也沒有錯誤。

我在ressources / routing.xml中看到這條路線:

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

我的問題是我不知道如何運行此路線...

我試過了:

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

我也嘗試運行相同的路由,用“ message”替換url中的“ thread”,但未找到路由

有什么幫助嗎?

也許嘗試使用debug:router命令。 它應顯示路線的詳細信息(包括路線的完整路徑)。

app/console debug:router fos_message_thread_new

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM