开发者

Symfony: the route "xxx" does not exist

开发者 https://www.devze.com 2023-02-16 05:15 出处:网络
I uploaded my project to the server. Everything worked great locally but in th开发者_开发知识库e server, once a click a link or try to go manually (writing the direction in the module/template way), I

I uploaded my project to the server. Everything worked great locally but in th开发者_开发知识库e server, once a click a link or try to go manually (writing the direction in the module/template way), I get the error "The route "xxx" does not exist."

Please help me out, I'm out of ideas.

Thanks!

---Routing.yml---

default_index: url: /:module param: { action: index }

default: url: /:module/:action/*

---Error Message---

More info about the error: 500 | Internal Server Error | sfConfigurationException

The route "xxx" does not exist.

stack trace at () in SF_SYMFONY_LIB_DIR/routing/sfPatternRouting.class.php line 313 ... // named route

  if (!isset($this->routes[$name]))
  {
    throw new sfConfigurationException(sprintf('The route "%s" does not exist.', $name));
  }

  $route = $this->routes[$name];

  $this->ensureDefaultParametersAreSet();


Clear symfony cache on your production:

./symfony cc


Please verify routing.yml file. If you have not define any rules for that link than it will display a fatal error:

for ex. :

link_to('Registration','user_registration')

In rounting.yml :

user_registration:
  url: /register/userRegistration.html
  param: {module: register, action: userRegistration}


You may used link_to tag any where in page and you may provide there xxx in link url value. have to provide there module/action pattern or add xxx routing rule in routing.yml file

0

精彩评论

暂无评论...
验证码 换一张
取 消