ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 0 replies, has 1 voice, and was last updated by  mmr 1 year, 9 months ago.

  • Creator
    Topic
  • #13394

    mmr
    Participant

    Hi,

    i’m still new to symfony and oro and now i stuck using it. I have build a bundle with clean Symfony which uses KnpPaginatorBundle. Now i tried to migrate this to OroPlatform by moving the folders of the Bundle to /src. KnpPaginatorBundle i installed using composer. The required files were saved to /vendor.
    I modified the templates to display the content of my bundle. At this point my Bundle works fine except the one view wich uses the PagninatorBundle. The Application tells me ‘You have requested a non-existent service “knp_paginator”‘.

    So, what did i wrong?
    – installing Knp via Composer
    – created a file /src/knplabs/knp-paginator-bundle/Resources/config/oro/bundles.yml with following content
    bundles:
    - Knp\Bundle\KnpPaginatorBundle

    i also tried to register a service within my Bundle by the /Resources/config/service.yml File
    services:
    knp_paginator:
    class: Knp\Bundle\KnpPaginatorBundle

    Is there anything else i have to do, to get a Bundle in /vendor work?

You must be logged in to reply to this topic.