Coding: Solo Style
Could not load image
Now that we have seen all the theory and stuff, let's get down to business and do some examples. We will start with the full coding approach with no ORM and then spice it up with ORM, so you can see how awesome ORM can be. The examples will not show the entire application being built, but enough to get you started with the process of modeling everything. Here is a layout of what we will build:
1
+ handlers
2
+ contacts.cfc
3
+ models
4
+ ContactService.cfc
5
+ ContactDAO.cfc
6
+ Contact.cfc
Copied!
I will create a DAO for this small example, so we can showcase how to talk to multiple objects. You can start a new application with CommandBox if you like:
1
mkdir solo
2
cd solo
3
coldbox create app name=solo skeleton=AdvancedScript --installColdBox
4
server start --rewritesEnable
Copied!
Last modified 2yr ago
Copy link
Edit on GitHub