cost 410 ms
如何在沒有fosUser的情況下在fosCommentBundle中添加輸入用戶名?

[英]How to add the input username in fosCommentBundle without fosUser?

我想在不使用 FOSUserBundlde 的情況下在捆綁包 FOSCommentBundle 中添加用戶名字段(輸入)。 用戶必須輸入他的用戶名和評論。 基本 model 不提供偽字段,因為它依賴於連接的用戶或“匿名”(如果沒有連接的用戶)。 你能告訴我怎么做嗎? Symfony 4.4 謝謝 ...

Symfony 3.4 FOSCommentBundle無法在偵聽器內部自動裝配服務

[英]Symfony 3.4 FOSCommentBundle Can not autowire service inside listener

有人可以幫我在Symfony3.4中自動布線嗎? 我正在嘗試實現以下偵聽器,但我不知道要注入VoteManagerInterface。 這是錯誤,我的代碼和我的配置。謝謝您的幫助:) 無法自動裝配服務“ AppBundle \\ EventListener \\ CommentVo ...

FOSCommentBundle沒有出現

[英]FOSCommentBundle not appearing

我正在嘗試使用FOSCommentBundle在我的應用程序中實現注釋線程部分。 但是我已經按照指南安裝了https://github.com/FriendsOfSymfony/FOSCommentBundle/blob/master/Resources/doc/index.md ,但對我來說 ...

Bootstrap4,JQuery3和FOS Comment Bundle => $ .get(...)。error不是函數

[英]Bootstrap4, JQuery3 and FOS Comment Bundle => $.get(…).error is not a function

這更多是我找到的解決方法,而不是問題。 在Symfony 3項目上,我決定將引導程序3升級到4。這意味着使用JQuery3,它與Fos Comment Bundle 2.0.14(可能更早)的異步注釋顯示不完全兼容。 您可能會遇到JS錯誤: TypeError:$。get(.. ...

FOSCommentBundle線程

[英]FOSCommentBundle Thread

我已經安裝了FOSCommentBundle,一切正常,輸入注釋顯示按預期工作,但是我想為每個實體顯示1個線程,所以我得到了許多使用不同URL的計划,例如:/ planning / id。 但是每當我在規划/ 1中發表評論時,例如。 我在線程實體中創建了一個永久鏈接。 但是,當我要轉到Pl ...

“ acl”的定義沒有分類

[英]The definition for “acl” has no class

我正在嘗試實施ACL以將對FOSCommentBundle的評論限制為用戶角色。 我一步一步地遵循了Bundles Doc,但顯示了一個錯誤: “ acl”的定義沒有分類。 那就是我的app / config / config.yml 我以為symfony3沒有安裝ACL, ...

如何翻譯捆綁商品上的標簽

[英]How to translate labels on a bundle

我用自己的語言通過bundle字段的翻譯制作了自己的文件。 它在我的FOSUserBundle上工作,我為注釋包創建了另一個,但不在FOSUserComment中。 在翻譯文件夾中。 示例代碼: 我可以替換{% trans from 'FOSCommentBundle' %}f ...

FOSCommentBundle如何實現

[英]FOSCommentBundle how to implement

有一些例子可以實現嗎? 不要在我的頁面上顯示任何內容。 我不知道如何放置此代碼以及頁面上顯示的內容。 當我把它放在我的config.yml 創建一個錯誤: “ fos_comment”下的無法識別的選項“ assetic”。 我的配置: fos_comm ...

Symfony:私有服務 - 使用Rest -API提供更改選項

[英]Symfony : private services - provide change options by using Rest -API

我目前正在使用FOSCommentBundle來獲取Rest api最佳實踐的示例 在這個包中有使用具有不同選項的Sorter(或Sorting)服務,使用date asc和date desc進行排序,但是這些服務不會在排序提供者數組中注入(在排序類服務中) 通過“頁碼”或“日期”范 ...

FOSCommentBundle symfony 3 嚴重錯誤

[英]FOSCommentBundle symfony 3 critical error

我在我的項目中安裝了 foscomment 包,我在 git hub 中遵循此包提供的文檔 這是鏈接 文檔 git 中心 當我想更新我的數據庫架構時,這個異常出現在我面前,我無法弄清楚是什么問題 這是我的錯誤輸出 這是我的評論實體 ...

Symfony 3 | FOSCommentBundle管理許多線程/注釋

[英]Symfony 3 | FOSCommentBundle manage many Threads / Comments

我在項目中使用了FOSCommentBundle,我已經使用線程和注釋類對其進行了配置,並且可以正常工作。 但是現在我需要管理許多類型的線程和注釋。 例如,我的新聞帶有評論,目錄的內容帶有評論。 當然,新聞評論與內容評論是不同的。 我不知道如何在config.yml中做到這一點: ...

FOSCommentBundle自定義評論排序

[英]FOSCommentBundle Custom comment sorting

我需要基於評論得分實現自定義評論排序,我經歷了14-customizing_tree_sorting.md services:在my app/config.yml ,如下所示 在這里,我需要實現邏輯的自定義類CommentOrderSorting中沒有調用SortingInterfac的 ...

沒有FOSUserBundle可以使用FOSCommentBundle嗎?

[英]is it possible to use FOSCommentBundle without FOSUserBundle?

我想知道是否可以不使用FOSCommentBundle FOSUserBundle,因為我正在嘗試不使用FOSUserBundle的情況下使用FOSCommentBundle 我遵循了文檔中的4個步驟,但是沒有用。 ...

FOSCommentBundle訪問控制的回復,刪除和編輯評論

[英]FOSCommentBundle access control replying,deleting and editing Comments

我已經在symfony2.3項目中成功安裝了FOSComentBundle 。 我將FOSCommentBundle與FOSUserBundle集成在一起,然后添加了基於角色的ACL安全性。我已經看到可以控制的動作是: create,view,delete,edit 。 我只想為管理員顯示回 ...

如何使用FOSCommentBundle Symfony顯示評論

[英]How to display comment using FOSCommentBundle Symfony

我想將評論整合到我的網頁中。 因此,我使用了Symfony2.3 Bundle FosCommentBundle 。 我按照Bundle文檔中指示的步驟進行操作,但是在第四步中,生成的頁面上沒有任何反應,並且出現了ajax 500 Internal錯誤: 我沒有找到很多關於該捆綁軟件 ...

SonataCommentBundle的Symfony2 MappingException

[英]Symfony2 MappingException with SonataCommentBundle

我使用SonataCommentBundle版本~2.2@dev,集成了此捆綁包后,我嘗試使用http://xx.out.tn/app_dev.php/comments/threads它給了我: 這是我的config.yml: routing.yml: ...

FOSCommentBundle排序

[英]FOSCommentBundle Sorting

如何在FOSCommentBundle上配置升序排序 我嘗試了以下操作,但始終收到“最大函數嵌套級別”(設置為200)錯誤。 有任何想法嗎? 是否有任何有關如何正確配置此功能的實際文檔 ...

具有ACL和角色的FOS評論權限

[英]FOS Comment permissions with ACL and Roles

因此,我安裝了foscomment(最新版本),並成功將其設置為ACL。 然后,我決定也添加基於角色的權限。 問題是,發表評論的用戶無法再編輯自己的評論。 如果我賦予其角色編輯權,則他們可以編輯所有評論。 是否可以在foscomment捆綁包中本地使用ACL和角色? 因此,可以將編 ...


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