Reputation: 237
I uploaded my project to the server. Everything worked great locally but in the 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();
Upvotes: 2
Views: 9878
Reputation: 11
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}
Upvotes: 1
Reputation: 11
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
Upvotes: 0