Getting Started
Setting Up
Creating Objects
Methods
Making the page
Invoking Methods
Using Events

Tag Reference

Object Reference

Download

Mailing List

Other Links


Let's create our home page. Create index.cfm or default.cfm in your application's root directory

and click on the cfoCreateObject button in your cfObject toolbar.  This dialog box will appear.

We want to create a Page class, so enter page into the class field.  If you using using a Shared Server Deployment, click the appropriate checkbox and enter classes/ in the Path To Class Dir field.

Now click the Initialization tab...

The first attribute we want to give our page is a title, so enter title in the attribute field and enter Home Page in the corresponding value field.  Then click OK and you'll see the following code.

Internal Host Deployment
<cf_cfoCreateObject class="page" title="Home Page">

Shared Server Deployment
<cfmodule template="classes/cfoCreateObject.cfm" class="page" title="Home Page">

We've now created our first object. Next we will learn how to invoke methods of the class.

Move to Step 10 -->











SourceForge.net Logo