public function DisplayAction(Request $request) { // create a task and give it some dummy data for this example $questionnaire = new Questionnaire(); $questionnaire->getCreatorId("This is a Test Question?"); $questionnaire->getCreatedDate('1'); $questionnaire->getHidden('1'); $form = $this->createFormBuilder($questionnaire)->add('creatorId', 'text')->add('createdDate', 'text')->add('hidden', 'text')->add('save', 'submit', array('label' => 'Create Question'))->getForm(); return $this->render('default/new.html.twig', array('form' => $form->createView())); }