I did that:
<cffunction name="init" access="public" output="true"
returntype="Project" hint="function to instantiate the class">
<cfargument name="projectID" type="numeric" required="true"
hint="projectID">
<cfargument name="title" type="string" required="true"
hint="Title of this project as given when created">
<cfset this.projectID="#arguments.projectID#">
<cfset this.title="#arguments.title#">
<cfreturn this>
</cffunction>
and this: (ProjectHome.cfc)
<cfinvoke component="ttComponents.Project" method="init"
argumentcollection="#args#" returnvariable="myProject" >
And I'm still getting the error:
Detail If the component name is specified as a type of this argument,
the reason for this error might be that a definition file for such
component cannot be found or is not accessible.
Message The argument THISPROJECT passed to function newProjectCreated()
is not of type Project.
Could it be something else?
Joelle
Matt Williams wrote:
> In the Project.cfc init function, change return type to Project.
> Then add <cfreturn this>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239711
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54