My favorites | Sign in
Project Logo
                
Search
for

NOTE: This wiki contains "bleeding edge" documentation, which may reflect a future version of Wheels. Entries in the wiki may also be incomplete and unedited. Please visit cfwheels.org/docs for the "official" documentation.

Introduction

Handling Requests With Controllers

Database Interaction Through Models

Displaying Views to Users

Working With Wheels

Contributing to Wheels

Sample Applications

The Wheels API

* Not scheduled for the 1.0 release.

Updated Nov 05, 2009 by per.djurner
Labels: chapter, 1.0
ModelClassFunctions  
Listing of all model class methods.

These methods operate on the class as a whole and not on individual objects and thus need to be prefaced with model("name"). You can call these methods from anywhere but it is not recommended to call them from view pages. When calling them from its own model file it is recommended to reference the scope explicitly with the this keyword.

Examples

controllers/Blog.cfc:

<cfset allAuthors = model("author").findAll()>

models/Author.cfc:

<cfset allAuthors = this.findAll()>

Functions

Read:

THE REST OF THE CONTENT ON THIS PAGE WILL BE GENERATED FROM THE SOURCE CODE


Sign in to add a comment
Hosted by Google Code