OK, a sample app is now available in the branch. It's in
modelgluesamples/NewScaffolds/. It uses CF9 ORM, so you'll need to be
running CF9. ;-)
You'll need to set up a dsn called NewScaffolds (or edit the dsn name
in the Application.cfc) and then you should be good to go. If you
haven't played around with CF9 ORM DDL generation yet, you may be
surprised to find that you may have to run the app a few times with
?reload=true to get the db to create successfully, but it should work
eventually.
Right now it's set up to drop and recreate the tables on each request,
so it works fine for viewing the pages but the CRUD stuff won't seem
to work. You can change that by changing line 9 in Application.cfc
from:
<cfset this.ormsettings =
{dbcreate="dropcreate",logSQL=true,sqlscript="loadScript.sql"} />
to
<cfset this.ormsettings =
{dbcreate="update",logSQL=true,sqlscript="loadScript.sql"} />
It's set up right now to generate the edit form using cfUniform. To
change it generate the old style, but still using the new custom tag
method you'll have to change line 60 in Coldspring.xml.xfm from:
<entry key="class"><value>beans.Edit_cfU</value></entry>
to:
<entry key="class"><value>beans.Edit_New</value></entry>
and then you'll have to rename the custom tags (which are in
/views/generated/) from scaffold_property_mg.cfm to
scaffold_property.cfm, etc.
Let me know if you have any issues getting it running. I'm keen to
hear what people think of this approach.
Cheers,
Bob
> On Fri, Jan 22, 2010 at 9:37 AM, Dan Wilson <[email protected]> wrote:
>> Do you have a sample application I can install to see this in action?
>>
>> DW
>>
--
Bob Silverberg
www.silverwareconsulting.com
Hands-on ColdFusion ORM Training @ cf.Objective() 2010
www.ColdFusionOrmTraining.com
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en