Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- calling template
- <cfset userService = new UserService()>
- <cfset personService = new PersonService()>
- UserService.cfc
- component {
- writeOutput("Hello From User Service");
- public UserService function init(){
- return this;
- }
- }
- PersonService.cfc
- <cfcomponent>
- <cfoutput>Hello From PersonService</cfoutput>
- <cffunction name="init" access="public" returntype="PersonService">
- <cfreturn this>
- </cffunction>
- </cfcomponent>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement