Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error : Could not load type "genemu_jquerygeolocation" #438

Open
cyberomulus opened this issue Sep 18, 2016 · 0 comments
Open

Error : Could not load type "genemu_jquerygeolocation" #438

cyberomulus opened this issue Sep 18, 2016 · 0 comments

Comments

@cyberomulus
Copy link

Hello,

I use Genemu for the JQueryGeolocation and I have this error :

Could not load type "genemu_jquerygeolocation"

There my code :

    public function buildForm(FormBuilderInterface $builder, array $options)
        {
        $builder->add(  'adresseGeoLocalisation', 
                        'genemu_jquerygeolocation',
                        array(  'map' => true,
                                'latitude' => array( 'enabled' => true,
                                                    'hidden'    => false
                                                    ),
                                'longitude' => array( 'enabled' => true,
                                                    'hidden'    => false
                                                    ),
                                'locality'  => array('enabled'   => false,
                                                    'hidden'    => true
                                                    ),
                                'country'   => array('enabled'   => false,
                                                    'hidden'    => false
                                                    ),
                                )
                        );
        $builder->add('presentation');
        $builder->add('lieu');
        }`

I have SF3, the I try with this :

    public function buildForm(FormBuilderInterface $builder, array $options)
        {
        $builder->add(  'adresseGeoLocalisation', 
                        GeolocationType::class,
                        array(  'map' => true,
                                'latitude' => array( 'enabled' => true,
                                                    'hidden'    => false
                                                    ),
                                'longitude' => array( 'enabled' => true,
                                                    'hidden'    => false
                                                    ),
                                'locality'  => array('enabled'   => false,
                                                    'hidden'    => true
                                                    ),
                                'country'   => array('enabled'   => false,
                                                    'hidden'    => false
                                                    ),
                                )
                        );

$builder->add('presentation');
        $builder->add('lieu');

        }`

And I have same error :

Could not load type "form"

Where is my error ?
Thank

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant