symfony-cmf/resource

ResourceBundle documentation link broken

iBasit opened this issue · 5 comments

broken link for ResourceBundle documentation

Need to see how I can get this or rest bundle working, because I'm getting _cmf_resource not found error

@iBasit there is no documentation for this bundle as its still in development. Can you provide a stack trace? Sounds like you are perhaps not importing the routing file from ResourceRestBundle .. maybe?

Ya that most likely it, but there is nothing mention about it. Can you please provide import link or path, I can try to import that as well.


cmf_create_rest:
    resource: "@CmfCreateBundle/Resources/config/routing/rest.xml"

#cmf_create_image:
#    resource: "@CmfCreateBundle/Resources/config/routing/image.xml"

cmf_tree:
    resource: .
    type: 'cmf_tree'

fos_js_routing:
    resource: "@FOSJsRoutingBundle/Resources/config/routing/routing.xml"

Looks like this is the droid you are looking for:

https://github.com/symfony-cmf/resource-rest-bundle/blob/master/Resources/config/routing.yml

So

cmf_resource_rest:
    resource: "@ResourceRestBundle/Resources/config/routing.yml"
    prefix: /admin

Can you tell me how you encountered this error? Is this with SonataAdmin? What documentation needs to be updated?

First of all, Thank you for your help. I wouldn't have done it without your help.

Bundle path is slightly different and you have to include ResourceBundle and ResourcesRestBundle in your kernal, before it can work. This is written no where, so I'm writing here for future reference if someone else had same problem

Sorry to say this, but you guys need to make this easy.. it is hell getting this up and running lol

cmf_resource_rest:
    resource: "@CmfResourceRestBundle/Resources/config/routing.yml"
    prefix: /admin

As I mentioned, this bundle is not stable, hence no documentation. This will be part of the CMF 2.0 release.