This is for discussion, mainly on 1.x but there's some 2.x topics here too.
Moderators: dwhittle, Ian
by Ian » Thu Nov 03, 2005 12:25 am
If I want to change the .html extension to something else, I should just have to edit /app/settings.yml correct?
I have:
- Code: Select all
all:
.actions:
login_module: security
login_action: index
.settings
available: on
suffix: .test
When I go to the security login screen it still shows /security/login.html
Am I doing this right?
-
Ian
- Faithful Member
-
- Posts: 386
- Joined: Tue Oct 25, 2005 6:53 pm
- Location: Boulder, CO (USA)
by fabien » Thu Nov 03, 2005 5:00 pm
That's correct. If you work with the 'prod' environment, don't forget to clear the cache so your modifications are applied:
- Code: Select all
symfony clear-cache
or
- Code: Select all
symfony cc
Last edited by
fabien on Thu Nov 03, 2005 5:00 pm, edited 1 time in total.
-
fabien
- Faithful Member
-
- Posts: 486
- Joined: Sat Oct 22, 2005 9:01 am
by Ian » Thu Nov 03, 2005 6:49 pm
I've cleared the cache numerous times and have even tried in /app_dev.php/ mode and it still shows login.html.
This isn't overwritten anywhere else besides the main settings.yml file correct? Anything else I could try?
-
Ian
- Faithful Member
-
- Posts: 386
- Joined: Tue Oct 25, 2005 6:53 pm
- Location: Boulder, CO (USA)
by fabien » Thu Nov 03, 2005 7:00 pm
I just tried with
- Code: Select all
all:
.settings:
suffix: .foobar
and it works for me... no idea why it doesn't work for you!
I search for .html in symfony code and no occurence. I checked the generate method in sfRouting class and it seems to do the right thing, ... very strange behaviour indeed.
-
fabien
- Faithful Member
-
- Posts: 486
- Joined: Sat Oct 22, 2005 9:01 am
by Ian » Thu Nov 03, 2005 7:13 pm
Seems like it only happens on the login page when security is enabled. Not sure why. The rest of the pages will accept /index.test, but the login page requires login.html.
-
Ian
- Faithful Member
-
- Posts: 386
- Joined: Tue Oct 25, 2005 6:53 pm
- Location: Boulder, CO (USA)
Return to General discussion
Who is online
Users browsing this forum: No registered users and 3 guests