PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 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>