AndyB
Well-known member
In my Similar threads add-on, I have a code that is repeated in three different files. I would like to take this code and put it into a file that I can call.
I assume I need to create a folder called "Repositiory" and a file called "SimilarThreads.php", is this correct?
What should SimilarThreads.php file contain? What do I have to add to the three files that will be calling this function? I will need to pass the threadId and nodeId and retreive the threadIds.
Thank you.
I assume I need to create a folder called "Repositiory" and a file called "SimilarThreads.php", is this correct?
What should SimilarThreads.php file contain? What do I have to add to the three files that will be calling this function? I will need to pass the threadId and nodeId and retreive the threadIds.
Thank you.