PDA

View Full Version : testing functions


sabret00the
11-29-2004, 12:54 PM
how do you test functions? i made one to pull some info from the database and then make a string to write the date as the template call of $galleryavatar

however i've written the function in functions_showthread and then added code into the showthread template to convert the function in the variable, however when i call the variable in the template nothing happens? so i know it's all parsed correctly, how do i test to find out why it won't work?

Andreas
11-29-2004, 01:06 PM
Write a test-script that calls your function?

sabret00the
11-29-2004, 04:01 PM
you're right oops, head weren't screwed on, only 18 lines and i think i'm sorting it now :)