[SF2][Symfony][Symfony2]Attempted to call method "redirectToRoute" |
[SF2][Symfony][Symfony2]Attempted to call method "redirectToRoute" |
29.03.2015, 12:22:05
Post
#1
|
|
Grupa: Zarejestrowani Postów: 367 Pomógł: 17 Dołączył: 4.03.2008 Ostrzeżenie: (0%) |
Witam
Mam problem z przekierowaniem do innej strony:
Po wywołaniu submita pojawia się problem z wywołaniem funkcji redirectToRoute nie wiem dlaczego Attempted to call method "redirectToRoute" on class "Acme\PageBundle\Controller\DefaultController" in C:\xampp\htdocs\symfony\src\Acme\PageBundle\Controller\DefaultController.php line 84. EMERGENCY - Call to undefined method Acme\PageBundle\Controller\DefaultController::redirectToRoute() CRITICAL - Uncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedMethodException: "Attempted to call method "redirectToRoute" on class "Acme\PageBundle\Controller\DefaultController" in C:\xampp\htdocs\symfony\src\Acme\PageBundle\Controller\DefaultController.php line 84." at C:\xampp\htdocs\symfony\src\Acme\PageBundle\Controller\DefaultController.php line 84 Pomożecie? |
|
|
29.03.2015, 12:43:20
Post
#2
|
|
Grupa: Zarejestrowani Postów: 619 Pomógł: 143 Dołączył: 22.12.2010 Ostrzeżenie: (0%) |
Jaka wersja symfony?
Cytat The redirectToRoute() method was added in Symfony 2.6. Previously (and still now), you could use redirect() and generateUrl() together for this (see the example above).
|
|
|
29.03.2015, 14:50:10
Post
#3
|
|
Grupa: Zarejestrowani Postów: 367 Pomógł: 17 Dołączył: 4.03.2008 Ostrzeżenie: (0%) |
"symfony/symfony": "2.5.*",
dzięki za info |
|
|
Wersja Lo-Fi | Aktualny czas: 27.04.2024 - 14:34 |