Wednesday, August 08, 2007

Creating a Model-View-Controller Framework (2)

Work continues on the creation of the MVC framework. I really ought to give it a name. I think I'm moving towards Icicle. I'm already using Iceberg for the CMS, and going with the whole ColdFusion->Cold->Ice link, it seems logical.

One of the biggest difficulties I've had is building the Application.cfc. How do you have an XML-configured framework without continually reloading the XML file that configures the whole thing. At the moment, I'm reading the file on every request, but I'm not happy about that as it relies on the file system rather than application memory. To be continued...

In terms of the actual configuration of the object factory (which is part of the framework), it's pretty much done as far as I started out to build it. The thing that it doesn't currently do is to distinguish between per-request objects (which aren't handled by it currently) and per-application objects (which are loaded once, which is all it does at the moment). This needs building in otherwise it doesn't do all it should.

More to come

1 comment:

Unknown said...

Hi dude,
i read your blog,This is a wonderful blog.I was able to get the
information that I had been looking for. Thanks once again.
ColdFusion Downloads