Last active
August 29, 2015 14:09
-
-
Save nastanford/de4663f9bd4eabf2e3f1 to your computer and use it in GitHub Desktop.
User Defined Functions (functions to remember)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- Example. ---> | |
<cfset this.mappings["/model"]="C:\wwwroot\fv\model"> | |
<cfset structAppend(url,createObject( "component", "model.udf" )) /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component displayname="User Defined Functions" hint="User Defined Functions" output="true" | |
{ | |
// Create Form Fields | |
public string function formFields(_form) | |
{ | |
var _results =""; | |
savecontent variable="_results" | |
{ | |
for(i=1;i<=ListLen(_form);i++){ | |
if(ListGetAt(_form,i) neq ""){ | |
writeOutput("<input type='hidden' name='"&ListGetAt(_form,i)&"' value='"&form[ListGetAt(_form,i)]&"'>"); | |
} | |
} | |
} | |
return _results; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment