Projet symfony2 ne fonction plus apres réinstalation dans racine de wamp
Salut à tous.
J'ai un projet symfony2;
J'ai modifier auparavant l'action index en se code suivant
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
/**
* @Route("/",name="_accueil")
* @Template()
*/
public function indexAction()
{
$c = new Commentaire;
$form = $this->createForm(new CommentaireType, $c);
$request = $this->get('request');
if ($request->getMethod() == 'POST') {
$form->handleRequest($request);
if ($form->isValid()) {
$em = $this->getDoctrine()->getManager();
$em->persist($c);
$em->flush();
return response("bien");
//return $this->redirect($this->generateUrl('laboratoire_show', array('id' => $entity->getId())));
}
return $this->render('laLingerieBundle:Default:index.html.twig', array(
'form' => $form->createView()
));
} |
j'ai enlever le projet et remis dans wamp/www là la bécane m'envoit sur la page d'acceuil de symfony2.
Ma question est comment relancer mon projet.