frontendbeast
frontendbeast

Reputation: 1043

Symfony custom route works with frontend_dev.php but not with index.php

Am I missing something or should my custom route work with the index.php (or nothing) instead of frontend_dev.php? I'm getting a 500 error when I go to the model, and a 404 for the show page. My route is:

project_show:
  url:     /project/:slug
  class:   sfDoctrineRoute
  options: { model: Project, type: object }
  param:   { module: project, action: show }

Any help would be much appreciated! Thanks!

Darren.

Upvotes: 0

Views: 1562

Answers (1)

Crozin
Crozin

Reputation: 44376

First of all try to clear the cache: ./symfony cc. If that won't help just check what error is thrown (you can find an error message in your logs).

Upvotes: 1

Related Questions