-1
我已經安裝了FOSMessageBundle。我認爲我的安裝是正確的。教義上沒有錯誤:生成:實體既不在教條:模式:更新。FosMessageBundle:查找創建新消息的路由
我看到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
我也試圖運行在相同航線更換「線程」在URL中使用「消息」,但沒有得到路由發現
請幫忙嗎?
謝謝你,我的朋友幫助我找到了路線。要運行的路線是/ optional_routing_prefix/new ...我想現在我必須在配置文件中更改前綴:'optional_routing_prefix'。 所以祝你有美好的一天! – zm455