![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 236 Pomógł: 0 Dołączył: 27.10.2012 Ostrzeżenie: (0%) ![]() ![]() |
cześć
nie wiem jak zrobić aby tworzyły się dynamiczne linki w menu ze slugiem (np: /o-firmie), kiedy je odczytuje to mam dziwną postać w źródle: web/app_dev.php/%7B%24slug%7D?slug=o-firmie a kiedy klikam taki link to wywala błąd: Controller "FrontBundle\Controller\DefaultController::pageAction()" requires that you provide a value for the "$slug" argument (because there is no default value or because there is a non optional argument after this one). Builder.php
DefaultController.php
Prosze o pomoc Ten post edytował dopelganger 21.06.2016, 13:01:44 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 4 291 Pomógł: 829 Dołączył: 14.02.2009 Skąd: łódź Ostrzeżenie: (0%) ![]() ![]() |
{slug} a nie {$slug} w route
|
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 236 Pomógł: 0 Dołączył: 27.10.2012 Ostrzeżenie: (0%) ![]() ![]() |
{slug} a nie {$slug} w route coś się zaczyna dziać (IMG:style_emoticons/default/smile.gif) wywala kolejnego byka: An exception has been thrown during the rendering of a template ("Parameter "slug" for route "page" must match "[^/]++" ("" given) to generate a corresponding URL.") in FrontBundle:Default:index.html.twig at line 26. Ten post edytował dopelganger 21.06.2016, 13:16:49 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 5.10.2025 - 15:05 |