application.cfm

Coldfusion using onRequestEnd() with Application.cfm files

最后都变了- 提交于 2020-01-04 06:04:32
问题 I'm working in a legacy app that was built upon the use of Application.cfm files rather than Application.cfc files. There is a need to be able to run code after a request has processed. (Basically, I am wanting to use the <cfhtmlhead> tag to inject some Javascript and CSS files into every loaded document. Before I was doing this with a GreaseMonkey user script, but something server-side would be best.) From what I read, I think I should be able to do this with the onRequestEnd() function,

coldfusion application.cfm and affected files

家住魔仙堡 提交于 2019-12-10 21:14:38
问题 If I have a site where there is a protected back end and I'm looking to use an application.cfm file, how can I tell which pages use the application filesa and which ones do not. index.cfm update/application.cfm update/loginexpired.cfm update/login.cfm update/somesecurepage.cfm update/someothersecurepage.cfm I want updates/login.cfm to create the session if the login is correct. If the secure pages update/somesecurepage.cfm and update/someothersecurepage.cfm are accessed without correct login

ColdFusion: Are there any use cases where an Application.cfm is preferable to an Application.cfc

谁说胖子不能爱 提交于 2019-12-08 20:35:23
问题 I'm in the process of upgrading a large legacy ColdFusion application that heavily utilizes Application.cfm template files instead of the newer Application.cfc files. It seems that Application.cfc offer a cleaner more efficient solution to everything that a Application.cfm file can do. An Application.cfm runs every line sequentially for every request, so it would recreate application variables on every subsequent new page query. (Can cause performance hit if many application variables loaded)