accessibleProperties()
Use this method to specify which properties can be set 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.
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.
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.
<!--- 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!