Category : cropperjs

With Symfony, I need to add and crop images using CropperJS (Ajax) in my Users form. I added my field in UserType class: public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add(‘firstname’, TextType::class, [ ‘label’ => ‘Firstname’, ‘attr’ => [ ‘class’ => ‘form-control’ ] ]) ->add(‘lastname’, TextType::class, [ ‘label’ => ‘Lastname’, ‘attr’ => [ ‘class’ ..

Read more