title: It says here: The controller must return a response (null given). Did you forget to add a return statement somewhere in your controller?
body: <pre><code>&lt;?php
  namespace Acme\TaskBundle\Controller;
  use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  use Acme\TaskBundle\Entity\Task;
  use Symfony\Component\HttpFoundation\Request;
  
  
  class DefaultController extends Controller
  {
    public function indexAction($name)
    {
      return $this-&gt;render('AcmeTaskBundle:Default:index.html.twig', array('name' =&gt; $name));
    }
  
    public function newAction(Request $request)
    { 
      // just setup a fresh $task object (remove the dummy data)
      $task = new Task();
      $task-&gt;setTask('Write a blog post');
      $task-&gt;setDueDate(new \DateTime('tomorrow'));
  
      $form = $this-&gt;createFormBuilder($task)
          -&gt;add('task', 'text')
          -&gt;add('dueDate', 'date')
          -&gt;getForm();
  
      if ($request-&gt;isMethod('POST')) 
      {
        $form-&gt;bind($request);
  
        if ($form-&gt;isValid()) 
        {
          // perform some action, such as saving the task to the database
  
          return $this-&gt;redirect($this-&gt;generateUrl('task_success'));
        }
      }
    }
  }
  </code></pre>
  
  <p>It says here:  The controller must return a response (null given). Did you forget to add a return statement somewhere in your controller?
  Can anyone help me on this</p>