开发者

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

开发者 https://www.devze.com 2022-12-28 14:06 出处:网络
Am I missing something or should my custom route work with the index.php (or 开发者_StackOverflownothing) instead of frontend_dev.php? I\'m getting a 500 error when I go to the model, and a 404 for th

Am I missing something or should my custom route work with the index.php (or 开发者_StackOverflownothing) 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.


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).

0

精彩评论

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