both this:
<!------------------------------------------- CONSTRUCTOR
-------------------------------------------->
<cfproperty name="User"inject="model" scope="instance"/>
<cfscript>
instance=structNew();
</cfscript>
<cffunction name="init" output="false" returntype="User">
<cfreturn this>
</cffunction>
<!----------------------------------------- IMPLICIT EVENTS
------------------------------------------>
<!------------------------------------------- PUBLIC EVENTS
------------------------------------------>
<cffunction name="ChkUser" access="public" returntype="any"
output="false">
<cfargument name="Event" type="any">
<cfscript>
var rc = Event.getCollection();
//var UserModel=getModel('model.User').init();
//TestUser=UserModel.ChkUser();
//sUsername=rc.username,sPassword=rc.password
return instance.User;
</cfscript>
</cffunction>
or this:
<!------------------------------------------- CONSTRUCTOR
-------------------------------------------->
<cfproperty name="User"inject="model"/>
<cffunction name="init" output="false" returntype="User">
<cfreturn this>
</cffunction>
<!----------------------------------------- IMPLICIT EVENTS
------------------------------------------>
<!------------------------------------------- PUBLIC EVENTS
------------------------------------------>
<cffunction name="ChkUser" access="public" returntype="any"
output="false">
<cfargument name="Event" type="any">
<cfscript>
var rc = Event.getCollection();
//var UserModel=getModel('model.User').init();
//TestUser=UserModel.ChkUser();
//sUsername=rc.username,sPassword=rc.password
return User;
</cfscript>
</cffunction>
= the same problem