accessibleProperties()

Use this method to specify which properties can be set through mass assignment.

Name Type Required Default Description
properties string No Property name (or list of property names) that are allowed to be altered through mass assignment.
accessibleProperties([ properties ]) <!--- In `models/User.cfc`, only `isActive` can be set through mass assignment operations like `updateAll()` --->
<cffunction name="init">
    <cfset accessibleProperties("isActive")>
</cffunction>
Copied!

addDefaultRoutes()

Adds the default CFWheels routes (for example, [controller]/[action]/[key], etc.) to your application. Only use this method if you have set loadDefaultRoutes to false and want to control exactly where in the route order you want to place the default routes.

<!--- Adds the default routes to your application (done in `config/routes.cfm`) --->
<cfset addDefaultRoutes()>
Copied!

addError()

Adds an error on a specific property.

Name Type Required Default Description
property string Yes The name of the property you want to add an error on.
message string Yes The error message (such as "Please enter a correct name in the form field" for example).
name string No A name to identify the error by (useful when you need to distinguish one error from another one set on the same object and you don't want to use the error message itself for that).
addError(property, message [, name ]) <!--- Add an error to the `email` property --->
<cfset this.addError(property="email", message="Sorry, you are not allowed to use that email. Try again, please.")>
Copied!

addErrorToBase()

Adds an error on a specific property.

Name Type Required Default Description
message string Yes The error message (such as "Please enter a correct name in the form field" for example).
name string No A name to identify the error by (useful when you need to distinguish one error from another one set on the same object and you don't want to use the error message itself for that).
Adds an error on the object as a whole (not related to any specific property). <!--- Add an error on the object --->
<cfset this.addErrorToBase(message="Your email address must be the same as your domain name.")>
Copied!

addFormat()

Adds a new MIME format to your Wheels application for use with responding to multiple formats.

Name Type Required Default Description
extension string Yes File extension to add.
mimeType string Yes Matching MIME type to associate with the file extension.
<!--- Add the `js` format --->
<cfset addFormat(extension="js", mimeType="text/javascript")>

<!--- Add the `ppt` and `pptx` formats --->
<cfset addFormat(extension="ppt", mimeType="application/vnd.ms-powerpoint")>
<cfset addFormat(extension="pptx", mimeType="application/vnd.ms-powerpoint")>
Copied!
All

accessibleProperties()

addDefaultRoutes()

addError()

addErrorToBase()

addFormat()

addRoute()

afterCreate()

afterDelete()

afterFind()

afterInitialization()

afterNew()

afterSave()

afterUpdate()

afterValidation()

afterValidationOnCreate()

afterValidationOnUpdate()

allChanges()

allErrors()

autoLink()

automaticValidations()

average()

beforeCreate()

beforeDelete()

beforeSave()

beforeUpdate()

beforeValidation()

beforeValidationOnCreate()

beforeValidationOnUpdate()

belongsTo()

buttonTag()

buttonTo()

caches()

capitalize()

changedFrom()

changedProperties()

checkBox()

checkBoxTag()

clearChangeInformation()

clearErrors()

columnDataForProperty()

columnForProperty()

columnNames()

columns()

compareTo()

contentFor()

contentForLayout()

controller()

count()

create()

cycle()

dataSource()

dateSelect()

dateSelectTags()

dateTimeSelect()

dateTimeSelectTags()

daySelectTag()

delete()

deleteAll()

deleteByKey()

deleteOne()

deobfuscateParam()

distanceOfTimeInWords()

endFormTag()

errorCount()

errorMessageOn()

errorMessagesFor()

errorsOn()

errorsOnBase()

excerpt()

exists()

fileField()

fileFieldTag()

filterChain()

filters()

findAll()

findAllKeys()

findByKey()

findFirst()

findLast()

findOne()

findOrCreateBy[Property]()

flash()

flashClear()

flashCount()

flashDelete()

flashInsert()

flashIsEmpty()

flashKeep()

flashKeyExists()

flashMessages()

get()

getTableNamePrefix()

hasChanged()

hasErrors()

hasMany()

hasManyCheckBox()

hasManyRadioButton()

hasOne()

hasProperty()

hiddenField()

hiddenFieldTag()

highlight()

hourSelectTag()

humanize()

hyphenize()

imageTag()

includeContent()

includedInObject()

includeLayout()

includePartial()

invokeWithTransaction()

isAjax()

isClass()

isGet()

isInstance()

isNew()

isPost()

isSecure()

javaScriptIncludeTag()

key()

linkTo()

mailTo()

maximum()

mimeTypes()

minimum()

minuteSelectTag()

model()

monthSelectTag()

nestedProperties()

new()

obfuscateParam()

onlyProvides()

pagination()

paginationLinks()

passwordField()

passwordFieldTag()

pluginNames()

pluralize()

primaryKey()

primaryKeys()

properties()

property()

propertyIsPresent()

propertyNames()

protectedProperties()

provides()

radioButton()

radioButtonTag()

redirectTo()

reload()

renderNothing()

renderPage()

renderPartial()

renderText()

renderWith()

resetCycle()

response()

save()

secondSelectTag()

select()

selectTag()

sendEmail()

sendFile()

set()

setFilterChain()

setPagination()

setPrimaryKey()

setPrimaryKeys()

setProperties()

setResponse()

setTableNamePrefix()

setVerificationChain()

simpleFormat()

singularize()

startFormTag()

stripLinks()

stripTags()

styleSheetLinkTag()

submitTag()

sum()

table()

tableName()

textArea()

textAreaTag()

textField()

textFieldTag()

timeAgoInWords()

timeSelect()

timeSelectTags()

timeUntilInWords()

titleize()

toggle()

toXHTML()

truncate()

update()

updateAll()

updateByKey()

updateOne()

updateProperties()

updateProperty()

urlFor()

usesLayout()

valid()

validate()

validateOnCreate()

validateOnUpdate()

validatesConfirmationOf()

validatesExclusionOf()

validatesFormatOf()

validatesInclusionOf()

validatesLengthOf()

validatesNumericalityOf()

validatesPresenceOf()

validatesUniquenessOf()

validationTypeForProperty()

verificationChain()

verifies()

wordTruncate()

yearSelectTag()