Created
January 23, 2015 10:44
-
-
Save alborq/a32153e581c81047902f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// src/Acme/TaskBundle/Controller/DefaultController.php | |
// ajoutez cette nouvelle déclaration « use » en haut de la classe | |
use Acme\TaskBundle\Form\Type\TaskType; | |
public function newAction() | |
{ | |
$task = // Mon objet de base a partir du quel je crée le form | |
$form = $this->createForm(new TaskType(), $task); | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment