0

I have version 4.1 of symfony, and I tried first to install symfony/form component, and here is the screenshot: http://prntscr.com/jqqvdl

Next, i get this error - http://prntscr.com/jqqxdg

Error:

Could not load type "Symfony\Component\Form\Extension\Core\TextType": class does not exist.

Anyone knows how to fix this symfony bug ?

1 Answer 1

2

In fact, the correct namespace is:
Symfony\Component\Form\Extension\Core\Type\TextType

TextType is under Symfony\Component\Form\Extension\Core\Type, see:

use Symfony\Component\Form\Extension\Core\Type\TextType;
//...
$form = $this->createFormBuilder()
    ->add('task', TextType::class)    
    ->getForm();
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.