title: symfony\bundle\frameworkbundle\controller not found
body: <p>It seems like it isn't possible to create a form because frameworkbundle is not found. I really don't know how to fix the problem.</p>
  
  <p>I tried to use different methods for creating form and i am using the following link to make this work <a href="http://symfony.com/doc/current/cookbook/doctrine/registration_form.html" rel="nofollow">http://symfony.com/doc/current/cookbook/doctrine/registration_form.html</a></p>
  
  <pre><code>&lt;?php
  namespace Forms;
  
  use Symfony\Component\Form\AbstractType;
  use Symfony\Component\Form\FormBuilderInterface;
  use Symfony\Component\OptionsResolver\OptionsResolverInterface;
  
  class UserType extends AbstractType
  {
  public function buildForm(FormBuilderInterface $builder, array $options) 
  {
      $builder-&gt;add('username', 'username');
      $builder-&gt;add('email', 'email');
      $builder-&gt;add('password', 'repeated', array(
          'first_name' =&gt; 'password',
          'second_name' =&gt; 'confirm',
          'type'      =&gt;  'password',
      ));
  }
  
  public function setDefaultOptions(OptionsResolverInterface $resolver) {
      $resolver-&gt;setDefaults(array(
          'data_class' =&gt; '\Entities\User'
      ));
  }
  
  public function getName()
  {
      return 'user';
  } 
  }
  </code></pre>
  
  <p>This is the form that builds the form and then i have the controller to show the form on the webpage.</p>
  
  <pre><code> &lt;?php
   namespace Controllers;
   use Symfony\Bundle\FrameworkBundle\Controller\Controller;
   use Symfony\Component\HttpFoundation\Request;
   use Forms\UserType;
  
   class RegisterController extends Controller
   {
  public function get(Request $request)
  {
      $registration = new UserType();
      $form = $this-&gt;createForm(new UserType(), $registration, array(
          'action' =&gt; $this-&gt;generateUrl('account_create'),
      ));
      if($form-&gt;isValid())
      {
          $data = $form-&gt;getData();
          echo $data;
  
          return $app-&gt;redirect('login');
      }
  
      return $app['twig']-&gt;render('register.twig', array('form' =&gt; $form-&gt;createView()));
  }
  }
  </code></pre>