I place my services in the model directory that contains the classes that it
manages. So, let's say I have User, UserEmail, and UserAddress classes all
managed by a UserService, it would look like so...
+ application-root
- model
- user
User.cfc
UserAddress.cfc
UserEmail.cfc
UserService.cfc
Since my services are managed by ColdSpring, and MG will handle DI into
controllers for me, I just reference them in the controller as
beans.{Service}. So, using the user example again, I might have a
controller that looked like so...
<cfcomponent beans="UserService">
<cffunction name="needNewUser">
<cfscript>
event.setValue("user",beans.UserService.newUser());
</cfscript>
</cffunction>
HTH
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
To unsubscribe from this group, send email to
model-glue+unsubscribegooglegroups.com or reply to this email with the words
"REMOVE ME" as the subject.