PageRenderTime 16ms CodeModel.GetById 12ms app.highlight 0ms RepoModel.GetById 2ms app.codeStats 0ms

/wheels/tests/_assets/controllers/Test.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 33 lines | 26 code | 7 blank | 0 comment | 0 complexity | 10c8ff8daef411c178e18874edda21d9 MD5 | raw file
 1<cfcomponent extends="Controller">
 2
 3	<cffunction name="test">
 4		<cfset variableForView = "variableForViewContent">
 5		<cfset variableForLayout = "variableForLayoutContent">
 6	</cffunction>
 7
 8	<cffunction name="testRedirect">
 9		<cfset redirectTo(action="dummy")>
10		<cfset request.setInActionAfterRedirect = true>
11		<cfset renderPage(action="test")>
12	</cffunction>
13
14	<cffunction name="$dataForPartial" returnType="struct" access="private">
15		<cfset var data = {}>
16		<cfset data.fruit = "Apple,Banana,Kiwi">
17		<cfset data.somethingElse = true>
18		<cfreturn data>
19	</cffunction>
20
21	<cffunction name="partialDataImplicitPrivate" returnType="struct" access="private">
22		<cfreturn $dataForPartial()>
23	</cffunction>
24
25	<cffunction name="partialDataImplicitPublic" returnType="struct" access="public">
26		<cfreturn $dataForPartial()>
27	</cffunction>
28	
29	<cffunction name="partialDataExplicitPublic" returnType="struct" access="public">
30		<cfreturn $dataForPartial()>
31	</cffunction>
32
33</cfcomponent>