Home » PHP » Pimcore » How can we pass all submitted parameter to twig or view?

How can we pass all submitted parameter to twig or view?

Pimcore
public function formAction(Request $request) {
        /**
         * @var Form $form
         */
        $form = $this->createForm(FormType::class);
        $form->handleRequest($request);

        if ($form->isSubmitted()) {           
            $data = $form->getData(); 
            $this->view->form = $form->createView();
        }
        $this->view->getParameters()->add($form->getData());
        $this->view->form = $form->createView(); 
    }

Check Also

Pimcore

How can replace all images with the same name in the assets folder

Put the below function in your class file and run the static route. /** * …

Leave a Reply

Your email address will not be published. Required fields are marked *