/examples/api_anythingtoxml/Application.cfc
ColdFusion CFScript | 16 lines | 11 code | 5 blank | 0 comment | 0 complexity | c768917c9a9a69ecf17fe75b470f9d97 MD5 | raw file
1<cfcomponent extends="taffy.core.api"> 2 <cfscript> 3 4 this.name = hash(getCurrentTemplatePath()); 5 6 variables.framework = {}; 7 variables.framework.serializer = "taffy.bonus.AnythingToXmlRepresentation"; 8 9 function onApplicationStart(){ 10 application.anythingToXml = createObject("component", "anythingtoxml.AnythingToXML").init(); 11 12 return super.onApplicationStart(); 13 } 14 15 </cfscript> 16</cfcomponent>