/examples/api_anythingtoxml/Application.cfc

http://github.com/atuttle/Taffy · 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. this.name = hash(getCurrentTemplatePath());
  4. variables.framework = {};
  5. variables.framework.serializer = "taffy.bonus.AnythingToXmlRepresentation";
  6. function onApplicationStart(){
  7. application.anythingToXml = createObject("component", "anythingtoxml.AnythingToXML").init();
  8. return super.onApplicationStart();
  9. }
  10. </cfscript>
  11. </cfcomponent>