generateSES & subsystems

67 views
Skip to first unread message

Ivan

unread,
Jun 22, 2020, 1:39:45 AM6/22/20
to framework-one

Hi everyone,
I also write here the question I asked on the slack channel (maybe I'm luckier 😄):

---

I have a quick question: how can I set `variables.framework.generateSES = false` only within subsystems?

my application.cfc

variables.framework = {
generateSES = true,
SESOmitIndex = true,
unhandledPaths = "/tests,/assets,/media",
decodeRequestBody = true,
preflightOptions = true,


qb = {
returnFormat : "query"
},

diEngine: "di1",
diLocations : [ "/model", "/controllers" ],
diConfig = {
loadListener = "LoadListener",
exclude : [ "/com/" ]
},

routes = [

// my rules

],

subsystems: {
admin : {
generateSES = false
}
}

};

I tried to dump `fw.getSubsystemConfig( 'admin' )` inside my controller app/subsystems/admin/controllers/dashboard.cfc


but if I try in my view app/subsystems/admin/views/dashboard/default.cfm:

#buildURL( action = 'admin:dashboard.default', queryString = { id = 76, img = 'small' } )#


the result is `/admin:dashboard/default/IMG/small/ID/76`


Thanks,
Ivan
Reply all
Reply to author
Forward
0 new messages