> So to keep this from happening again with my next application: What
> should I do? How should I organized my components? How should I
> package my components?
What I do is make a variable in the application file called like
request.basepackage = "catalog.model"
then try to organize off of that. for example:
createObject("component","#request.basepackage#.description")
or if you want to get silly, you can make a udf to get the path for you
(looks a bit better but has more overhead)
function getLocalCFC(cfcname){
return #request.basepackage#.#cfcname#;
}
or something along those lines. Anyway, if you have to move it or rename
it you only have to adjust one place.
--
Vale,
Rob
Luxuria immodica insaniam creat.
Sanam formam viatae conservate!
http://www.rohanclan.com
http://treebeard.sourceforge.net
http://ashpool.sourceforge.net
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

