Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter "title" for route "movies_show" must match "[^/]++" ("Frost/Nixon" given) to generate a corresponding URL #68

Open
johnnyMick opened this issue Feb 13, 2020 · 0 comments

Comments

@johnnyMick
Copy link

johnnyMick commented Feb 13, 2020

To fix this update the Controller class : src/AppBundle/Controller/MovieController.php line 31
into

$title = str_replace('/',' ', $movieNode->get('title'));
$movie['url']` = $this->generateUrl('movies_show', ['title' => $title]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant