Question
Which index.cfm is being called?
Ok. I have a feeling there will be an easy solution to this
and feel dumb because I cannot seem to come up with it right now...
I have two index.cfm pages... one in my webroot/index.cfm and the other in webroot/admin/index.cfm...
Is there a quick way in code to determine weather the page being requested is in the admin directory or the root during my onRequestStart to determine what level of authentication is neccesary. I am trying to avoid using two Application.cfc files as that would mean i need to duplicate some code and then if changes are made i would have two places to make them which i am trying to avoid.
I am assuming this is going to use GetTemplatePath() but I must be using it incorrectly.
Thanks for all of your help.
I have two index.cfm pages... one in my webroot/index.cfm and the other in webroot/admin/index.cfm...
Is there a quick way in code to determine weather the page being requested is in the admin directory or the root during my onRequestStart to determine what level of authentication is neccesary. I am trying to avoid using two Application.cfc files as that would mean i need to duplicate some code and then if changes are made i would have two places to make them which i am trying to avoid.
I am assuming this is going to use GetTemplatePath() but I must be using it incorrectly.
Thanks for all of your help.
