any idea, suggestions
# cfml-general
g
any idea, suggestions
a
threads, Gavy. What about this exercise are you having problems with? You described some circumstances, but not an actual problem.
g
ok here is the question i have, there is a folder called errorhandler which has some bunch of files and a table which logs all the errors in one oif the database, lets call it database departments now my purpose is to use this error handler in every project i have and once i get an error, it should do the error log in the table and display a message on screen but the Confusion i have here is how i can use this as a common error handler for all the projects instead of each having its own
a
So you want an answer like "don't use a hard-coded DSN value, modify the lib to use a variable that's set by the app that's using it?"
Because that's the only way I can think to answer your question, but it sounds so fundamentally obvious that I'm assuming I am misunderstanding you.
Copy code
/app
    Application.cfc
        // sets application.dsnForErrorLib
/errorLib
    // uses application.dsnForErrorLib