?? GreyFile — Mystic File Browser

Current path: home/webdevt/cryptoimpot.fr/module/Application/src/Form/InformationForm/



?? Go up: /home/webdevt/cryptoimpot.fr/module/Application/src/Form

?? Viewing: CreateInformationForm.php

<?php

namespace Application\Form\InformationForm;

use Laminas\Form\Element\Button;
use Laminas\Form\Element\Number;
use Laminas\Form\Element\Select;
use Laminas\Form\Element\Text;
use Laminas\Form\Form;

class CreateInformationForm extends Form {

    public function __construct($em) {
       
        parent::__construct('information-form');

        $this->setAttribute('method', 'post');

//         $this->add(array(
//            'type' => 'Laminas\Form\Element\MultiCheckbox',
//            'attributes' => array(
//                'multiple' => 'multiple',
//            ),
//            'name' => 'echanges',
//            'options' => array(
//                'label' => 'echanges',
//                'value_options' => array(
//                    '0' => 'French',
//                    '1' => 'English',
//                    '2' => 'Japanese',
//                    '3' => 'Chinese',
//                ),
//            ),
//        ));
        
        //$exchangeSelect = 
        
        // Thème
        
        $element = new \Application\Form\Element\ExchangeSelect($em);
        $this->add($element);
        
        
//        $this->add(array(
//            'type' => 'Laminas\Form\Element\Select',
//            'name' => 'exchanges',
//            'attributes' => array(
//                'multiple' => 'multiple',
//            ),
//            'options' => array(
//                'target_class' => 'Application\Entity\Exchange',
//                'property' => 'name',
//                'label' => 'Select exchanges',
//                'find_method' => array(
//                    'name' => 'findAllSelectable',
//                ),
//            ),
//    ));



        /* Csrf */
        $element = new \Laminas\Form\Element\Csrf('csrf');
        $this->add($element);

        // Submit
        $submitElement = new Button('submit');
        $submitElement
                ->setLabel('Enregistrer et passer à l\'étape suivante')
                ->setAttributes(array(
                    'type' => 'submit',
        ));

        $this->add($submitElement, array(
            'priority' => -100,
        ));
    }

}


??

??