Hi Guys,

i am just trying to get my head around something's.. u guys are welcome to
point me in the right direction.

i would like to use mach ii framework but it might be abit difficult to
introduce it to my fellow dev's. :(

if i had a

userBean.cfc
newsBean.cfc
productsBean.cfc

validation.cfc
DAO.cfc

1.
----------------------------------------------------------------------------
--------------------------------------
now the validation.cfc and DAO.cfc are common cfc's that are called from
other sections within the CMS (.eg News, Products etc)

a.)
am i correct in saying that i should validate my data before putting it in
the bean?

b.)
what is the best way of calling validation.cfc and dao.cfc and given that i
cant use "EXTEND" since validation "isnt-a" news related object or can i ??

can i EXTEND validation.cfc off my userBean.cfc and have a Validation()
inside my userBean.cfc if required for custom validation else the inherited
Validation() in the validation.cfc should do the job ?

<cfset stReturn structNew()>
<cfset objUser = createObject("component","userBean") />
<cfset stReturn = objUser.Validation(form) />
<cfif stReturn.returnCode EQ 1>
        <cfset objUser.SetUsername(Form.Username) />
        <cfset objUser.SetPassword(Form.Password) />
        etc.......
</cfif>

once that's done i can pass the userBean object to the DAO.cfc

2.
----------------------------------------------------------------------------
--------------------------------------
also do i need a DAO.cfc for each section (.eg one for users, news and
products) or i common DAO.cfc should be good if i can get away with it.


3.
----------------------------------------------------------------------------
--------------------------------------
Can the FORM scope struct variable be used instead of the BEAN object.... ?


any suggestion would be most welcome.

Cheers
Joel

.ps
are they any tutorials on the web i can read etc..
i have had a look at this, which was a create help..
http://clearsoftware.net/client/index.cfm?mode=entry&entry=3D1115E7-E081-2BA
C-6953DA4394855DDB

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at 
[EMAIL PROTECTED]

Reply via email to