I have the following routing configuration:
entry:
class: sfDoctrineRouteCollection
options:
model: ProjectEntry
module: entry
prefix_path: /entry
column: slug
with_show: false
model_methods:
{ object: getEntryBySlug }
requirements:
slug: \w+
which, among others, gives me the following output with the symfony app:routes :
entry_edit GET /entry/:slug/edit.:sf_format
at lib/model/doctrine/ProjectEntryTable.class.php I have the following method:
public static function getEntryBySlug($parameters)
{
return Doctrine_Core::getTable('ProjectEntry')->findOneBySlug($parameters['slug']);
}
However, when I enter an URL such as:
frontend_dev.php/entry/my-slug/edit
I get the following error:
404 | Not Found | sfError404Exception
Empty module and/or action after parsing the URL "/entry/my-slug/edit" (/).
(assume that my-slug is a valid slug for some record at ProjectEntry table)
I haven't found the cause of this error, what may I be doing wrong?
As far as I can tell, the problem is at the routing configuration (but where?!), because even if I try to debug something at my executeEdit action, I notice that I don't even get there. (If it's needed, I can post more code/output here...)
Any ideas deeply appreciated...