I’ve set a website up. If I try and click on a link such as register I get the following error:
404 | Not Found | sfError404Exception Empty module and/or action after parsing the URL '/trevelyan.alumni/register' (/).
The links are generated using
<?php print link_to( 'Register', 'register/index' ); ?>
And I have a ‘register’ module in apps/frontend/modules/register.
I’m quite new to Symfony, any help is appreciated!
routing.yml:
# default rules homepage: url: / param: { module: home, action: index } default_index: url: /:module param: { action: index } default: url: /trevelyan.alumni/:module/:action/*
I think that your problem is that you’re running symfony out of a ‘sub-site’ instead of directly off of the ‘root’ url (http://www.dur.ac.uk/trevelyan.alumni instead of http://www.dur.ac.uk/). I think the easiest solution would be to add
trevelyan.alumnito the front of all your urls in routing.yml.For example, for the
defaultroute, instead ofuse