If, as a web developer, you aren't structuring your code in a clean fashion then you owe it to yourself to use a pre-existing code framework rather than reinventing the wheel.
In the ColdFusion world one of the oldest and still most popular is Fusebox, a framework that has gone through many major changes over the years and unfortunately has gotten a bit more complicated with each release.