I want to use the CMF Media Bundle for image uploads. The Bundle was installed successfully.
routing.xml
cmf_media_file:
resource: "@CmfMediaBundle/Resources/config/routing/file.xml"
cmf_media_image:
resource: "@CmfMediaBundle/Resources/config/routing/image.xml"
AppKernel.php
$bundles = array(
...
new Symfony\Cmf\Bundle\MediaBundle\CmfMediaBundle(),
);
Now I want to add the following code to my form:
$builder
-> add('image', 'cmf_media_image', array('required' => false))
;
But I get an error message:
Could not load type "cmf_media_image"
What did i miss?
doctrine/phpcr-bundle
or do not instantiate it in your kernel. There is some documentation on the PHPCR bundle in http://symfony.com/doc/master/cmf/bundles/phpcr_odm/introduction.html – dbu Sep 17 '15 at 12:10