http://coldfusion.com logo
#cfml-general
Title
# cfml-general
g

gsr

06/07/2022, 11:45 AM
any idea, suggestions
a

Adam Cameron

06/07/2022, 11:56 AM
threads, Gavy. What about this exercise are you having problems with? You described some circumstances, but not an actual problem.
g

gsr

06/07/2022, 4:13 PM
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

Adam Cameron

06/07/2022, 4:20 PM
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
2 Views