<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>Trond Ulseth&apos;s Blog - ColdFusion</title>
			<link>http://trond.ulseth.no/index.cfm</link>
			<description>Trond Ulseth</description>
			<language>en-us</language>
			<pubDate>Wed, 02 Jan 2008 17:27:02 -0600</pubDate>
			<lastBuildDate>Mon, 27 Aug 2007 09:25:00 -0600</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>trond@ulseth.no</managingEditor>
			<webMaster>trond@ulseth.no</webMaster>
			
			
			
			
			
			<item>
				<title>File Explorer issues in CFEclipse soon history?</title>
				<link>http://trond.ulseth.no/index.cfm/2007/8/27/File-Explorer-issues-in-CFEclipse-soon-history</link>
				<description>
				
				I have the Trac page with the File Explorer issue in CFEclipse automatically opening in one of the tabs when I open my browser. Until recently nothing was there except the bug report itself. But now it seems something is happening. Someone with the username burnsra has posted a fix, so now I guess we&apos;ll just have to wait for the fix to make it into a upgrade.

Have a look at the Trac page &lt;a href=&quot;http://trac.cfeclipse.org/cfeclipse/ticket/332&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.
				
				</description>
				
				<category>ColdFusion</category>
				
				<category>Eclipse</category>
				
				<pubDate>Mon, 27 Aug 2007 09:25:00 -0600</pubDate>
				<guid>http://trond.ulseth.no/index.cfm/2007/8/27/File-Explorer-issues-in-CFEclipse-soon-history</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Jump on the OO bandwagon now!</title>
				<link>http://trond.ulseth.no/index.cfm/2007/8/24/Jump-on-the-OO-bandwagon-now</link>
				<description>
				
				During the last years there&apos;s been very many really good blog posts on all levels on programing CF OO style.

I even had my own &quot;Object Oriented Blog Process&quot; series - which turned out not to be so good :)

But at the time there are two series of blog post that aims at teaching you how to get on with OO.

The first one is Charlie Griefers (aka CJ) &quot;going OO&quot; series, documenting a OO noobs journy into OO territory. It can be found &lt;a href=&quot;http://cfblog.griefer.com/index.cfm?catID=94&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.

The other series take another approach as it is clearly written by someone who knows his stuff; &quot;Object Oriented Coldfusion&quot; by Adrian J. Moreno. I don&apos;t know who Adrian is from before, but he writes great stuff. Find it &lt;a href=&quot;http://www.iknowkungfoo.com/blog/index.cfm/OOP&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.
				
				</description>
				
				<category>ColdFusion</category>
				
				<pubDate>Fri, 24 Aug 2007 08:51:00 -0600</pubDate>
				<guid>http://trond.ulseth.no/index.cfm/2007/8/24/Jump-on-the-OO-bandwagon-now</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>While waiting for the File Explorer to be fixed in CFEclipse</title>
				<link>http://trond.ulseth.no/index.cfm/2007/8/24/While-waiting-for-the-File-Explorer-to-be-fixed-in-CFEclipse</link>
				<description>
				
				It&apos;s been a while since I made the transition to CFEclipse as my full-time CF coding tool.

However, even after Mark&apos;s heroic efforts after me bugging him the FTP functionality in the File Explorer left a little to be desired. This I could live with though. But now that the File Explorer itself has stopped working, so I can no longer open any local files that are not part of a project, that is worse. We have a &quot;zillion&quot; clients in work and to create a project to fix or update small things is not something I want to do.

But I came up with a temporary work-around: 

Created a project called &quot;temp&quot; and pointet it to wherever. For each location on your computer or (as in my case) the local network, right click on the project and choose &quot;New &gt; Folder&quot;. Name the folder something like &quot;Our smaller clients&quot; or whatever suits the location you are interested in. Then click the &quot;Advanced&quot; button on the bottom and check the &quot;Link to folder in the file system&quot; check box, and browse to the directory you need.

This way you can still have access to all the local files you need without opening a new project each time.

- - - 

ps - you can keep an eye at the situation with the File Explorer at &lt;a href=&quot;http://trac.cfeclipse.org/cfeclipse/ticket/332&quot; target=&quot;_blank&quot;&gt;http://trac.cfeclipse.org/cfeclipse/ticket/332&lt;/a&gt;

pss - Mark you&apos;re still my hero, and well deserve the break you&apos;ve taken of from CFEclipse. However, when you get back to it, and wonder where to start of, you know where my vote is ;)
				
				</description>
				
				<category>ColdFusion</category>
				
				<category>Eclipse</category>
				
				<pubDate>Fri, 24 Aug 2007 08:10:00 -0600</pubDate>
				<guid>http://trond.ulseth.no/index.cfm/2007/8/24/While-waiting-for-the-File-Explorer-to-be-fixed-in-CFEclipse</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>What&apos;s happening with newBee? (Kind of a Roadmap)</title>
				<link>http://trond.ulseth.no/index.cfm/2007/8/16/Whats-happening-with-newBee-Kind-of-a-Roadmap</link>
				<description>
				
				&lt;p&gt;
According to riaForge the newBee page has been seen more than 3600 times, and the framework itself downloaded 60 times. That is much more than I would have thought. I&apos;ve not heard from anyone who has downloaded and tried it though, so as far as I know I&apos;m the only one who have developed applications/sites using this framework. However I still plan on developing the framework further, and also promote it a bit more once it reaches a 1.0 release.
&lt;/p&gt;
&lt;p&gt;
Here are the things I would like to do before calling it a 1.0 release:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Whitespace controll&lt;/strong&gt; Look into how much whitespace controll I can do within the framework without affecting how you would code a newBee application.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Assigning results to scopes&lt;/strong&gt; This would make it easier to make multiple step forms, save login information etc.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Save named views&lt;/strong&gt; A little &quot;rip-of&quot; of how Model-Glue does it.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;More and better documentation&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;General code cleaning and commenting the code better&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
I&apos;m sure there was at least one more thing I had on my mind..... Well, well - that&apos;s the list for now&lt;/p&gt;
&lt;p&gt;
I&apos;m also planing a website for the framework.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt; Now I remember the last thing I wanted to do: &lt;strong&gt;Error catching.&lt;/strong&gt; And maybe some debugging output as well.&lt;/p&gt;
				
				</description>
				
				<category>newBee</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Thu, 16 Aug 2007 06:14:00 -0600</pubDate>
				<guid>http://trond.ulseth.no/index.cfm/2007/8/16/Whats-happening-with-newBee-Kind-of-a-Roadmap</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>FarCry 4 tutorial everybody should see?</title>
				<link>http://trond.ulseth.no/index.cfm/2007/7/4/FarCry-4-tutorial-everybody-should-see</link>
				<description>
				
				I just wrote a tutorial on making plugins in FarCry 4 making use of the FarCry Form Tools technology. I think it really shows some of the awesome powers of FarCry. Scaffolding, ORM, code- and application generation in a very smooth package is what this is about.

While FarCry is known to be an amazing CMS - it has developed into a full blown application framework - where CMS is just one of the plugins that you can make use of. In this tutorial I show you how to build another application/plugin - even though this plugin is mainly ment to be used together with the CMS.

Enough said - click the download link below to download the tutorial in pdf format.

&lt;a href=&quot;http://trond.ulseth.no/enclosures/Creating%20a%20plugin%20using%20Form%20Tools%2Epdf&quot; target=&quot;_blank&quot;&gt;DOWNLOAD&lt;/a&gt;
				
				</description>
				
				<category>FarCry</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Wed, 04 Jul 2007 08:33:00 -0600</pubDate>
				<guid>http://trond.ulseth.no/index.cfm/2007/7/4/FarCry-4-tutorial-everybody-should-see</guid>
				
				<enclosure url="http://trond.ulseth.no/enclosures/Creating a plugin using Form Tools.pdf" length="1126844" type="application/pdf"/>
				
			</item>
			
		 	
			
			
			<item>
				<title>Now running BlogCFC without get-/setProfileString</title>
				<link>http://trond.ulseth.no/index.cfm/2007/6/5/Now-running-BlogCFC-without-getsetProfileString</link>
				<description>
				
				Almost one week ago my blog went down. Replaced by an error telling me that &quot;The requested template has been denied access to setprofilestring&quot;.

I posted a ticket with HostingAtoZ, where I have my sites hosted. The reply was that setProfileString is a restricted function and that I must have changed my code. I wrote them back telling that I&apos;ve been running BlogCFC for a long time, and that they enabled setProfileString for my just for this purpose when I first installed BlogCFC. The answer was that they were wrong enabling it the first time and could not help.

Ok - I accept that it is a restricted tag, and I would have accepted getting a warning saying something like &quot;we&apos;ve discovered that by error...yadada.....could you make the necessary changes within a week.&quot; But that they suddenly just restrict it causing my blog to just go down like that - that is harder to accept.

For some days I&apos;ve been considering moving over to another host, but dreaded the thought.

So instead I decided to see if I could get BlogCFC to work without using setProfileString and getProfileString. It took some trial and error, since I cant access robust error messages either, but here is what I came up with:

In the blog.cfc file in the org/camden/blog folder I just comented out the part with setProfileString so that line 2020 and 2021 was replaced with this: 

&lt;code&gt;
&lt;!--- 
&lt;cfset setProfileString(variables.cfgFile, instance.name, arguments.property, arguments.value)&gt;
&lt;cfset instance[arguments.property] = arguments.value&gt;
---&gt;
&lt;/code&gt;

The slightly (but not much) trickier part is in the utils.cfc file in the same folder. But what I did was to move the configuration info from the blog.ini.cfm file into the utils.cfc file. Now this is not good programing. I could have made a xml file or some other configuration file, and I might still do, but this was a shoot at getting the blog up and running as fast as possible.

Here&apos;s part of the code (starting on line 119 in the configParam() method:

&lt;code&gt;
&lt;!--- delete parts with get- and setProfileString ---&gt;
&lt;cfset var result = &quot;&quot;&gt;
		
&lt;cfswitch expression=&quot;#key#&quot;&gt;
&lt;cfcase value=&quot;dsn&quot;&gt;
	&lt;cfset result=&quot;my_dsn&quot;&gt;
&lt;/cfcase&gt;
&lt;cfcase value=&quot;owneremail&quot;&gt;
	&lt;cfset result=&quot;trond@ulseth.no&quot;&gt;
&lt;/cfcase&gt;
&lt;cfcase value=&quot;blogURL&quot;&gt;
	&lt;cfset result=&quot;http://trond.ulseth.no/index.cfm&quot;&gt;
&lt;/cfcase&gt;
&lt;!--- continue for each or the config params in the blog.ini.cfm file ---&gt;
&lt;/cfswitch&gt;

&lt;cfreturn result&gt;
&lt;/code&gt;

As I said - not the best solution, but it&apos;s working (apparently).
				
				</description>
				
				<category>ColdFusion</category>
				
				<category>Rant</category>
				
				<pubDate>Tue, 05 Jun 2007 04:12:00 -0600</pubDate>
				<guid>http://trond.ulseth.no/index.cfm/2007/6/5/Now-running-BlogCFC-without-getsetProfileString</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>newBee - small update</title>
				<link>http://trond.ulseth.no/index.cfm/2007/5/23/newBee--small-update</link>
				<description>
				
				I&apos;ve added a small update to newBee today. You can grab it from the svn at Riaforge (the download zip file is not updated yet).

The update simply gives precedence to the form scope over the url scope to be used in the request scope. The request scope is what makes the controller layer pass info from the view to the model layer, so this affects how applications will work in situations where there are url and form variables named identically.

The reason for the update is that I found it to be preferable to have it this way in the application I&apos;m working with at the time.

I know that in Model-Glue (and probably other frameworks you can set which scope has precedence in the config file). Not sure if I&apos;ll introduce this in newBee.
				
				</description>
				
				<category>ColdFusion</category>
				
				<category>newBee</category>
				
				<pubDate>Wed, 23 May 2007 09:20:00 -0600</pubDate>
				<guid>http://trond.ulseth.no/index.cfm/2007/5/23/newBee--small-update</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>NewBee - now in public beta</title>
				<link>http://trond.ulseth.no/index.cfm/2007/5/15/NewBee--now-in-public-beta</link>
				<description>
				
				I&apos;ve now done the last updates to the NewBee framework that I wanted to get done before going public beta.

The framework can be downloaded from Riaforge.com (&lt;a href=&quot;http://newbee.riaforge.com&quot; target=&quot;_blank&quot;&gt;http://newbee.riaforge.com&lt;/a&gt;).

The version number now is 0.5 - I don&apos;t expect many changes before the final 1.0 version though.

So far there is no documentation expect my earlier blog posts about getting started with NewBee. Documentation will follow (relatively) shortly.

- - -

If you are new to frameworks, but would like to get started, download it - and tell me what you think.

If you are a framework junkie, and would like to add another one to your list, download it - and tell me what you think.

If you are a ColdFusion superhero and would like to help me make NewBee better, download it - and tell me what you think.

In fact - whoever you are - just download it - and tell me what you think ;)
				
				</description>
				
				<category>newBee</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Tue, 15 May 2007 05:34:00 -0600</pubDate>
				<guid>http://trond.ulseth.no/index.cfm/2007/5/15/NewBee--now-in-public-beta</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Subclipse is awesome, and not difficult</title>
				<link>http://trond.ulseth.no/index.cfm/2007/3/29/Subclipse-is-awesome-and-not-dificult</link>
				<description>
				
				I&apos;m not a very advanced user of SVN, and up until now I&apos;ve used TortoiseSVN as the client of my choice. However being that I now have a mac at home I needed to find a SVN client for OSX. However I could not find anything that looked as easy to use as Tortoise.

I&apos;ve been using (CF)Eclipse for quite a while, but for some reason I always thought that Subclipse is a advanced/difficult SVN client. However, realizing that I should probably learn it I decided to go ahead and (try to) use that on the mac.

To make it short: It&apos;s awesome. It&apos;s every bit as easy to use as Tortoise, and the fact that you create a new Eclipse project as part of setting up your local working copy is one of those things that really makes it worth while.

I&apos;ve just scratched the surface of Subclipse yet, but it is the SVN client of choice for me from now on - yes, even on Windows machines.

Some of you might be thinking something along the lines of &quot;Instead of just going on about how easy and great it is - why can&apos;t he tell us how to use it?&quot;. Well my friends, I see no reason to, because there is already a VERY GOOD explanation available, and which is the one I used to get started. It&apos;s written by Aaron West and can be found at his &lt;a href=&quot;http://www.trajiklyhip.com/blog/index.cfm/2007/3/15/Part-5-Accessing-Subversion-Repositories-With-Subclipse&quot; target=&quot;_blank&quot;&gt;blog&lt;/a&gt;.

So Aaron, if you ever read this, Thanx a lot mate!
				
				</description>
				
				<category>Tool tips</category>
				
				<category>Eclipse</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Thu, 29 Mar 2007 02:28:00 -0600</pubDate>
				<guid>http://trond.ulseth.no/index.cfm/2007/3/29/Subclipse-is-awesome-and-not-dificult</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>newBee on RIAForge (now with forum)</title>
				<link>http://trond.ulseth.no/index.cfm/2007/3/29/newBee-on-RIAForge-now-with-forum</link>
				<description>
				
				My before mentioned framework newBee is now on RIAForge. While the version currently in the SVN respiratory is not meant for the public (there is some stuff I need to clean up - and some documentation to be written), it is there. Mostly because I needed/wanted a SVN repository for it.

While I did not intend to go public with it quite yet, it has been reported several places that it is there, and so far the project has more than 500 views. So I see no point in not blogging about it myself :)

Today I added the forum option in RIAForge, seeing that many have been visiting and may have some questions, or other input about newBee.

I hope to get some time during Easter to finish version 0.5 which will be a stable, but maybe not optimized and feature complete version.
				
				</description>
				
				<category>newBee</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Thu, 29 Mar 2007 02:18:00 -0600</pubDate>
				<guid>http://trond.ulseth.no/index.cfm/2007/3/29/newBee-on-RIAForge-now-with-forum</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Man of the Month: Mark Drew</title>
				<link>http://trond.ulseth.no/index.cfm/2007/3/8/Man-of-the-Month-Mark-Drew</link>
				<description>
				
				I hereby declare Mark Drew winner of the Man of the Month award. The work Mark does with CFEclipse is nothing short of amazing. I think his attention to the needs and wishes of the community by far exceeds what most commercial enterprises do.

So Mark, as you know I don&apos;t drink (alcohol that is), but never the less I raise my virtual glass of Jack Daniels in praise of you and the work you do with CFEclipse.

I encourage all that reads this and who are using CFEclipse to leave a comment raising your virtual glass as well!
				
				</description>
				
				<category>Misc.</category>
				
				<category>Eclipse</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Thu, 08 Mar 2007 03:11:00 -0600</pubDate>
				<guid>http://trond.ulseth.no/index.cfm/2007/3/8/Man-of-the-Month-Mark-Drew</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>First look at newBee - part 4 (config.xml)</title>
				<link>http://trond.ulseth.no/index.cfm/2007/2/23/First-look-at-newBee--part-4-configxml</link>
				<description>
				
				First let me say I&apos;m sorry for the delay with this post. I&apos;ve been laying home with a serious case of the flue.

Ok - we saw in part 3 that the newbee.xml file holds the &quot;key&quot; for all the information flow from the view to the model and back. This is the big picture, the overview of the application of sorts.

There is one more xml file in the config directory though, simply called config.xml. It looks like this out of the box:

&lt;code&gt;
&lt;newbee_config&gt;

	&lt;!-- newBee configurations --&gt;
	&lt;config name=&quot;defaultEvent&quot; value=&quot;default&quot; /&gt;
	
	&lt;!-- application configurations --&gt;
	&lt;config name=&quot;dsn&quot; value=&quot;newbee&quot; /&gt;
	
&lt;/newbee_config&gt;
&lt;/code&gt;

The first config node called &quot;defaultEvent&quot; is needed in order for the application to know which event (specified in the newbee.xml file remember?) to run when no event is specified in the url or form scope.

The other config node is an example on how you can set application wide variables.

The idea is simply this:

newbee.xml holds the information that will not change once the application is developed, while config.xml holds information that might change with each installment of the application (like data source info, mail server info etc.).

A little inconsistency is that defaultEvent is not likely to change from installment to installment though.....

The current version of newBee is a Alpha 0.3 version. I expect it to go public beta at the 0.5 version, so things might still change.
				
				</description>
				
				<category>ColdFusion</category>
				
				<category>newBee</category>
				
				<pubDate>Fri, 23 Feb 2007 04:16:00 -0600</pubDate>
				<guid>http://trond.ulseth.no/index.cfm/2007/2/23/First-look-at-newBee--part-4-configxml</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>First look at newBee - part 3 (newbee.xml)</title>
				<link>http://trond.ulseth.no/index.cfm/2007/2/12/First-look-at-newBee--part-3-newbeexml</link>
				<description>
				
				We have seen that we can have a model cfc and a view template, that does not know anything about each other at all, but still work together.

The way we &quot;stitch together&quot; what model part and what view parts play together is with the newbee.xml file in the config directory. The newbee.xml file is wher you make all conections between the model and the view, and works a birds-eye view of what your whole application looks like.

Let&apos;s have a look at what it looks like right now:

&lt;code&gt;
&lt;newbee_controller&gt;
	
	&lt;!-- EVENTS --&gt;
	&lt;events&gt;
		&lt;event event=&quot;default&quot;&gt;
			&lt;model path=&quot;HelloWorld.cfc&quot; method=&quot;HelloWorld&quot; returnvariable=&quot;strHW&quot; /&gt;
			&lt;view path=&quot;mainpage.cfm&quot; /&gt;
		&lt;/event&gt;
	&lt;/events&gt;

&lt;/newbee_controller&gt;
&lt;/code&gt;

For now we&apos;ll look at the model and the view node defined under the event named &quot;default&quot;.

The model node has a path to a cfc, relative to the model directory (you can use subdirectories within the model directory), it has a method, which we remember from the cffunction name in the HelloWorld.cfc code we looked at. And we have a returnvariable, which we see is equal to the variable we used in our  mainpage.cfm code example.

Then theres the view node that contains the path to the mainpage.cfm file, relative to the view directory.

So we see that to instruct the controller (newBee framework) to connect the model and the view is very easy, intuitive and straightforward.
				
				</description>
				
				<category>ColdFusion</category>
				
				<category>newBee</category>
				
				<pubDate>Mon, 12 Feb 2007 04:23:00 -0600</pubDate>
				<guid>http://trond.ulseth.no/index.cfm/2007/2/12/First-look-at-newBee--part-3-newbeexml</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>First look at newBee - part 2 (instalation and basic code)</title>
				<link>http://trond.ulseth.no/index.cfm/2007/2/9/First-look-at-newBee--part-2-instalation-and-basic-code</link>
				<description>
				
				One of the basic ideas of newBee is that you should be able to put a newBee application into any directory or subdirectory (as deep down as you like) and it should run, without the need to set up any mappings and without the need to put any framework files directly under the webroot. Upload and run! Yeah baby!

So installation of newBee is to simply copy the newBee (newBee application skeleton) files, or a ready developed newBee application and put it in a directory on a CF enabeled webserver.

Ok, for some (probably most) application you will be required to set up a data source, but that is not specific for this framework.

When you have copied the newBee application skeleton into a directory you can open the application in your web browser. You should then see something like this:

&lt;img src=&quot;http://waterswing.com/newbee/view/images/screenshot1.gif&quot;&gt;

Having opened the site above you&apos;ve in fact opened up a newBee application. Let&apos;s look at some code:

&lt;strong&gt;model/HelloWorld.cfc&lt;/strong&gt;
&lt;code&gt;
&lt;cfcomponent name=&quot;HelloWorld&quot;&gt;
    &lt;cffunction name=&quot;HelloWorld&quot;&gt;
        &lt;cfreturn &quot;HelloWorld, you have installed the newBee application framework.&quot;&gt;
    &lt;/cffunction&gt;
&lt;/cfcomponent&gt;
&lt;/code&gt;

&lt;strong&gt;view/mainpage.cfm&lt;/strong&gt;
&lt;code&gt;
&lt;cfoutput&gt;
    #strHW#
&lt;/cfoutput&gt;
&lt;/code&gt;

Here we see the entire model and the entire view at work. We have a cfc which has a function called HelloWorld that returns a string, and a view page that outputs a variable. We also see that the cfc and cfm file have no knowledge about eachother what so ever. This makes the code very flexible and reusable.

Next time we&apos;ll have a look at the xml files. As said earlier newBee is the controller layer between the model and the view, and the xml files is where you &quot;instruct&quot; the controller. Don&apos;t worry, it&apos;s not hard at all. Remember &quot;Simplicity is the key&quot;.
				
				</description>
				
				<category>ColdFusion</category>
				
				<category>newBee</category>
				
				<pubDate>Fri, 09 Feb 2007 03:15:00 -0600</pubDate>
				<guid>http://trond.ulseth.no/index.cfm/2007/2/9/First-look-at-newBee--part-2-instalation-and-basic-code</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>First look at newBee (root structure)</title>
				<link>http://trond.ulseth.no/index.cfm/2007/2/7/First-look-at-newBee-root-structure</link>
				<description>
				
				So I&apos;ve decided to get newBee out in the open. I just thought I&apos;d start of by giving a very short introduction of the very basic functionality.

newBee is ment to be a very easy to learn and use MVC (Model-View-Controller) framework, where newBee acts as the Controller between your Model and your View files. Simplicity was my guiding word in making this framework.

The purpose is that your Model and View files should not know about each other. The goal is structure, re-usability and maintenance of your code.

So here is the root structure of a newBee application:

- Model&lt;br /&gt;
- View&lt;br /&gt;
- Controller&lt;br /&gt;
- Config&lt;br /&gt;
- application.cfm&lt;br /&gt;
- index.cfm

So, as you&apos;d guess, your model (cfc&apos;s) goes into the Model directory. Your view files goes into the View directory. The controller directory contains the newBee framework files (you should not go in here unless you want to modify the framework itself). The Config directory holds the XML files you use to &quot;instruct&quot; the framework.

The application.cfm and index.cfm files should also be left as they are.

This was the simplest root structure I could think of for a MVC framework. Remember &quot;Simplicity is the key&quot;.

Later today I&apos;ll try and get time for posting some code.
				
				</description>
				
				<category>newBee</category>
				
				<category>ColdFusion</category>
				
				<pubDate>Wed, 07 Feb 2007 02:56:00 -0600</pubDate>
				<guid>http://trond.ulseth.no/index.cfm/2007/2/7/First-look-at-newBee-root-structure</guid>
				
			</item>
			
		 	
			</channel></rss>
<SCRIPT language="Javascript">
<!--

// FILE ARCHIVED ON 20080102232711 AND RETRIEVED FROM THE
// INTERNET ARCHIVE ON 20100801044816.
// JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
// ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
// SECTION 108(a)(3)).

   var sWayBackCGI = "http://web.archive.org/web/20080102232711/";

   function xResolveUrl(url) {
      var image = new Image();
      image.src = url;
      return image.src;
   }
   function xLateUrl(aCollection, sProp) {
      var i = 0;
      for(i = 0; i < aCollection.length; i++) {
         var url = aCollection[i][sProp];         if (typeof(url) == "string") { 
          if (url.indexOf("mailto:") == -1 &&
             url.indexOf("javascript:") == -1
             && url.length > 0) {
            if(url.indexOf("http") != 0) {
                url = xResolveUrl(url);
            }
            url = url.replace('.wstub.archive.org','');
            aCollection[i][sProp] = sWayBackCGI + url;
         }
         }
      }
   }

   xLateUrl(document.getElementsByTagName("IMG"),"src");
   xLateUrl(document.getElementsByTagName("A"),"href");
   xLateUrl(document.getElementsByTagName("AREA"),"href");
   xLateUrl(document.getElementsByTagName("OBJECT"),"codebase");
   xLateUrl(document.getElementsByTagName("OBJECT"),"data");
   xLateUrl(document.getElementsByTagName("APPLET"),"codebase");
   xLateUrl(document.getElementsByTagName("APPLET"),"archive");
   xLateUrl(document.getElementsByTagName("EMBED"),"src");
   xLateUrl(document.getElementsByTagName("BODY"),"background");
   xLateUrl(document.getElementsByTagName("TD"),"background");
   xLateUrl(document.getElementsByTagName("INPUT"),"src");
   var forms = document.getElementsByTagName("FORM");
   if (forms) {
       var j = 0;
       for (j = 0; j < forms.length; j++) {
              f = forms[j];
              if (typeof(f.action)  == "string") {
                 if(typeof(f.method)  == "string") {
                     if(typeof(f.method) != "post") {
                        f.action = sWayBackCGI + f.action;
                     }
                  }
              }
        }
    }


//-->
</SCRIPT>

