CFWheels – Move Finders Into Your Model
One of the principles of CFWheels is not duplicating code. This can be achieved a number of ways, but one in particular can also save you some time. Typically our find() methods used to retrieve data have lots of conditions on them, setting the where clause or the order of the returned results, etc. One way to help clean up your controllers and speed up development is by moving those finders into your model to prevent duplication.
CFWheels – Find Through Association
When I first started learning CFWheels, I was so enamored with how simple it was to retrieve data from the database using the built-in ORM that I would code for days without taking full advantage of how much cleaner and simpler my code really could be. The more I worked with the ORM in Wheels, I learned more and more little tricks to help make my code much simpler. One of those tricks is to stop manually passing foreign keys into my find conditions and make the call through an association. Lets look at an example of how much more readable we can make our finder calls by taking advantage of relationships in CFWheels.
Dynamic Finders in CFWheels
One of the unexpected treats to using CFWheels is how much more readable it can make your code. Im not a big fan of inline comments because I believe in self-documenting code. One of the features of CFWheels that helps to achieve this is "Dynamic Finders". Lets take a look at how much more readable this often over-looked feature can make our finder calls.
ColdFusion on Wheels Version 1.1.2 Released
ColdFusion on Wheels has released version 1.1.3 today. This is mostly a bug fix release, but addresses a couple issues I had in 1.1.1 particularly. The upgrade is simple, just replace your current wheels folder with the new one from the zip file, reload your application and off you go. A list of all the issues fixed can be found over at the CFWheels blog. ColdFusion on Wheels Version 1.1.2 Released Today | ColdFusion on Wheels...
Another ColdFusion Builder Giveaway
This time its not me, but Ray Camden is giving away a copy of ColdFusion Builder if you donate to a charity of your choice. You can get the details on his blog here. If you aren't using ColdFusion Builder yet, you really should give it a try. Im finding more and more about it that Im liking every day!






Recent Comments
Jason Dean on Pulling specific files from a commit using Git
Thanks Russ, very helpful. I needed this four hours ago ( I did it a much harder way). I...dcolumbus on CFWheels Eclipse Dictionary Updated
Ah, because of my excitement, I forgot to register the dictionary. Step 3 in the documentation you provided. THANSK!dcolumbus on CFWheels Eclipse Dictionary Updated
Hey Russ, thanks for taking the time to put this Dictionary together. I'm curious if you might be able to...Luis on Installing Git on CentOS 5
Yup, this worked better for me.James Aspinwall on Installing Git on CentOS 5
Thanks, thanks, thanks... Save me lots of time and trouble.