symfony-cmf / tree-browser-bundle

Integrates javascript tree browser with PHPCR and PHPCR-ODM.
https://cmf.symfony.com
Other
22 stars 17 forks source link

Cannot load resource "." #144

Closed johnpancoast closed 6 years ago

johnpancoast commented 7 years ago

I'm following the docs here. Both bundles are registered.

The doc then says The bundle will create routes for each tree implementation found but I'm not sure what's expected for that. When I add this to routing section

app/config/routing.yml

cmf_tree:
    resource: .
    type: 'cmf_tree'

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

I receive Cannot load resource "." error. What am I missing?

jesus-borras commented 7 years ago

Same problem here with Symfony 2.8.

pbenard73 commented 7 years ago

Ok It's the old doc.

Don't need the cmf_tree config. But need CmfResourceBundle, CmfResourceRestBundle, include the routing of these bundle.

cmf_resource:
    resource: '@CmfResourceRestBundle/Resources/config/routing.yml'
    prefix: /admin

And now the TreeBrowser need a default repository https://groups.google.com/forum/#!topic/symfony-cmf-devs/MK4waXKPKMs

ElectricMaxxx commented 7 years ago

This one should be solved now, right?

ElectricMaxxx commented 6 years ago

I think this does not occur anymore, right, i will close, please reopen if it comes back.