symfony - Symfony2 - Routing error online only, not locally -


i appreciate taking time read problem. stated in title, able have code run error-free on local xampp server, when upload it, error. prod.log online gives error route cannot found.

the code in question below:

/**  * @route("features/{id}", name="features", defaults={"id" = 0})  * @template("fluffybundle:page:features.html.twig")  */ public function indexaction($id) { 

so trying accomplish if come mydomain.com/features, "id" value 0, , code know means not display specific article. however, if come mydomain.com/features/280, pull article id of 280 database. now, coming features page no id specified causes no issue online or offline. it's when attempt access mydomain.com/features/### prompted 500 error, , prod.log saying no route found. locally, pulls selected article database, not online.

any in understanding why exact same code online not work, offline does, appreciated. i'm sure there i'm missing or overlooking, can't figure out. additional note, run code locally in both dev , prod environments, no errors being thrown can see.

i consider issue close. turns out used wrong table name in 1 section of entity, , caused symfony break in strange way. error didn't reflect that, upon fixing table name issue, problem resolved.


Comments