Advertisement
Guest User

Untitled

a guest
Mar 28th, 2012
201
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. calling template
  2. <cfset userService = new UserService()>
  3. <cfset personService = new PersonService()>
  4.  
  5. UserService.cfc
  6. component {
  7. writeOutput("Hello From User Service");
  8. public UserService function init(){
  9. return this;
  10. }
  11. }
  12.  
  13. PersonService.cfc
  14. <cfcomponent>
  15. <cfoutput>Hello From PersonService</cfoutput>
  16. <cffunction name="init" access="public" returntype="PersonService">
  17. <cfreturn this>
  18. </cffunction>
  19. </cfcomponent>
Advertisement
RAW Paste Data Copied
Advertisement