@@ -363,7 +363,7 @@ With all of this in mind, check out this advanced example:
363363 {
364364 /**
365365 * @Route(
366- * "/articles/{_locale}/{year}/{title }.{_format}",
366+ * "/articles/{_locale}/{year}/{slug }.{_format}",
367367 * defaults={"_format": "html"},
368368 * requirements={
369369 * "_locale": "en|fr",
@@ -372,7 +372,7 @@ With all of this in mind, check out this advanced example:
372372 * }
373373 * )
374374 */
375- public function showAction($_locale, $year, $title )
375+ public function showAction($_locale, $year, $slug )
376376 {
377377 }
378378 }
@@ -381,7 +381,7 @@ With all of this in mind, check out this advanced example:
381381
382382# app/config/routing.yml
383383article_show :
384- path :/articles/{_locale}/{year}/{title }.{_format}
384+ path :/articles/{_locale}/{year}/{slug }.{_format}
385385defaults :{ _controller: AppBundle:Article:show, _format: html }
386386requirements :
387387_locale :en|fr
@@ -398,7 +398,7 @@ With all of this in mind, check out this advanced example:
398398 http://symfony.com/schema/routing/routing-1.0.xsd" >
399399
400400 <route id =" article_show"
401- path =" /articles/{_locale}/{year}/{title }.{_format}" >
401+ path =" /articles/{_locale}/{year}/{slug }.{_format}" >
402402
403403 <default key =" _controller" >AppBundle:Article:show</default >
404404 <default key =" _format" >html</default >
@@ -418,7 +418,7 @@ With all of this in mind, check out this advanced example:
418418 $collection = new RouteCollection();
419419 $collection->add(
420420 'article_show',
421- new Route('/articles/{_locale}/{year}/{title }.{_format}', array(
421+ new Route('/articles/{_locale}/{year}/{slug }.{_format}', array(
422422 '_controller' => 'AppBundle:Article:show',
423423 '_format' => 'html',
424424 ), array(