On May 4, 3:23 pm, "Luciano A. Andrade" <[EMAIL PROTECTED]> wrote:
> mmm, that shulnot break any route > ¿you change the route or symfony? > I think that the _sf_cache_key is only used on the cache (ie not in the url). We have a completely routed setup. Here's what happens if I call the index action of the "shop" module (i.e. http://www.mydomain.com/shop) with caching of partials and template fragments (under our existing routing): [sfConfigurationException] Unable to find a matching routing rule to generate url for params "". stack trace * at () in SF_SYMFONY_LIB_DIR/controller/sfRouting.class.php line 454 ... 451. $error = 'Unable to find a matching routing rule to generate url for params "%s".'; 452. $error = sprintf($error, var_export($params)); 453. 454. throw new sfConfigurationException($error); 455. } 456. } 457. * at sfRouting->generate('', array('module' => 'shop', 'action' => 'index', '_sf_cache_key' => 'header-top'), '/', '/', '/') in SF_SYMFONY_LIB_DIR/controller/sfWebController.class.php line 97 ... 94. } 95. 96. $r = sfRouting::getInstance(); 97. if ($r->hasRoutes() && $generated_url = $r- >generate($route_name, $parameters, $querydiv, $divider, $equals)) 98. { 99. $url .= $generated_url; 100. } * at sfWebController->genUrl('shop/index?_sf_cache_key=header- top') in SF_SYMFONY_LIB_DIR/view/sfViewCacheManager.class.php line 111 ... <...rest of error message clipped...> If I edit my routing and add /shop/index/* as an additional route, this error goes away. No mention is made of this in the caching chapter in the book. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
