|
hi all is there no way of
passing parameters into a CFC on invocation? At present I’ve got an init()
method that takes in application DSN and session security info and returns
THIS. eg: <cfset objReqAdmin
= createobject("component", "#APPLICATION.componentPath#.reqadmin").init(APPLICATION
.dsnInfo, SESSION.userinfo)> Without these, the component methods should not function so I’ve got a kludgy <cfif isInitialised> at the top
of every method to stop use without initialising
first. not the neatest solution. Without resorting the CFCs accessing session and application
scopes directly (bad news in my book), is there no other way? thanx barry beattie |
- RE: [CFCDev] constructors and initialisation Barry Beattie
- RE: [CFCDev] constructors and initialisation Nathan Dintenfass
- Re: [CFCDev] constructors and initialisation Ian Sheridan
- Re: [CFCDev] constructors and initialisation David Ross
