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
# unpacked plugin folders | |
plugins/**/* | |
# files directory where uploads go | |
files | |
# DBMigrate plugin: generated SQL | |
db/sql | |
# AssetBundler plugin: generated bundles |
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
// `controllers/Customers.cfc` | |
component extends="Controller" { | |
function init() { | |
verifies(only="edit,update,show", params="key", paramsTypes="integer"); | |
verifies(only="create,update", params="customer"); | |
} | |
function new() { | |
customer = model("customer").new(); |
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 extends="Controller" { | |
//----------------------------------------------------- | |
// Public | |
function init() { | |
filters(through="authenticate"); | |
} | |
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
private struct function articles() { | |
// Logic goes here | |
} |
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
<!--- In the controller ---> | |
<cfif toilet.flush()> | |
<cfset redirectTo(action="lockerRoom", success="Whoooooooosh!")> | |
</cfif> |
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
<link href="/stylesheets/styles.css?40FDC6D8A9D79E2FF8DB5207A8B03241" media="all" rel="stylesheet" type="text/css" /> |
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
<script type="text/javascript"> | |
var _gaq = _gaq || []; | |
_gaq.push(['_setAccount', 'UA-XXXXX-X']); | |
_gaq.push(['_trackPageview']); | |
(function() { | |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | |
})(); |
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
<cffunction name="setImageSizes" access="private" hint="Resizes image in queue, moves new resized files to 'production,' and removes `tempUploadId` from DB."> | |
<cfset var loc = {}> | |
<cfif isUploadingNewFile()> | |
<!--- Read image ---> | |
<cflog file="siteScreenshotResize" text="Reading #this.imageFile#"> | |
<cfset loc.image = ImageRead("#variables.UPLOAD_QUEUE_DIRECTORY##this.imageFile#")> | |
<!--- Turn on antialiasing to improve image quality ---> |
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
<cffunction name="add"> | |
<cfset user = model("user").new()> | |
</cffunction> | |
<cffunction name="edit"> | |
<cfset user = model("user").findByKey(params.key)> | |
</cffunction> |
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
<cfoutput> | |
#flashMessages()# | |
</cfoutput> |
OlderNewer