Monday, June 12, 2006

Tasting Model-Glue

No, this is the not the same model-glue that I used to eat in grade school, this is the framework for ColdFusion!

After watching Joe Rinehart's video tutorial that he did in preparation for Adobe Developer Week, I decided that it was really time to take a look at a framework to assist with my development projects.

To get started with this framework visit the website and grab the files.

Next - take a look at the QuickStart Guide - this is a sure way to get you up and running with Model-Glue in no time.

This is where I started.

I copied the application template directory and pasted it into my web root. Renamed the folder to my application name and made the changes as in the QuickStart Guide. I should make mention that I had to add these lines into the ModelGlue.xml file as they weren't there in the files that I had downloaded.

Are they really needed? Not sure, I've only been messing with this for a little over 10 minutes. I'll get back to you on that.

So - after making those changes and the change to the Application.cfm in the root of new application folder, I figured I was ready to go.

Launch browser... point to new application directory... BAM - Error.

For some reason it couldn't find the /ModelGlue/ModelGlue.cfm template.

Weird. Tried changing some things around and still couldn't get it to work.

Thought about it a bit more and thought I'd double check my mappings in my CF Administrator just to make sure that there wasn't some hokey mapping causing all my frustration. Well - there was!

I had a mapping for "/" set to my CFMX root instead of CFMX7 root.

Once I deleted that mapping, it worked like a charm!

Now it's time to turn one of my older applications into a lean, mean, Model-Glue fighting machine! I'll post about my experiences along the way.

No comments: