Re: Project not being returned as type project?

2006-05-08 Thread Joelle Tegwen
That was it. It didn't occur to me that I would need to reference the folder name. Thanks Joelle Matt Williams wrote: What does the component that has newProjectCreated() have for an argument? If its type is simply Project, then it must be in the same directory as the Project.cfc. Otherwise

Project not being returned as type project?

2006-05-05 Thread Joelle Tegwen
I'm working on a small application to learn cf and oop and I've got a problem with an object not being the type of object it's supposed to be. I've got Project.cfc cfcomponent name=Project output=true hint=contains needed information for a project cffunction name=init access=public

Re: Project not being returned as type project?

2006-05-05 Thread Matt Williams
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:239703 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4

Re: Project not being returned as type project?

2006-05-05 Thread Joelle Tegwen
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

Re: Project not being returned as type project?

2006-05-05 Thread Matt Williams
What does the component that has newProjectCreated() have for an argument? If its type is simply Project, then it must be in the same directory as the Project.cfc. Otherwise you may have to do ttComponents.Project for the argument type.