![]() |
|
|
|
Framefactory One
Project Home • Blog • Wiki • Known Issues • External Project Link • Contact Project
Author: Marco Betschart (All RIAForge projects by this author) Description:
Based on Framework One to load Beans, Controllers, Models, Services and create Accessors for Beans and Models.
/beans/user.cfc <cfcomponent output="false" hint="Enthaelt die User Eigenschaften inklusive dynamischen Accessors"> <cfproperty name="username" type="string" required="true" hint="Name des Benutzers" /> <cfproperty name="password" type="string" required="true" hint="Passwort des Benutzers" /> <cfproperty name="birthdate" type="date" required="true" hint="Geburtsdatum des Benutzers" /> <!--- add your functions, custom accessors or a customized validate function ---> </cfcomponent> /models/user.cfc <cfcomponent output="false" hint="Usermodel uebernimmt alle CRUD Arbeiten fuer den User"> <cffunction name="save" returntype="void" access="public" output="false" hint="Speichert den User in der Datenbank"> <cfargument name="username" type="string" required="true" hint="Name des Benutzers" /> <cfargument name="password" type="string" required="true" hint="Passwort des Benutzers" /> <cfargument name="birthdate" type="string" required="true" hint="Geburtsdatum des Benutzers" /> <cfset var local = structNew() /> <cfquery name="local.myQuery" datasource="#variables.instance.datasource#"> <!--- your insert statement ---> </cfquery> </cffunction> </cfcomponent>
Requirements:
ColdFusion 8.0.1 / 9.0
Railo 3.1.x Issue Tracker:
This project has an external bug tracker. You can find it here:
This project hosts its source control at an external location: |
Adobe and the Adobe product names are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries.