Hi,
I am reworking someone's code. The previous developer makes use of classes. That's fine.
I am incorporating an encryption/decryption class I have. It would be useful if some of the other classes could reference and make use of my enc/dec class -within their own class.
I suppose to do that I would have to use the inlcude or include_once function. I tried putting it in, but errored out. I had placed the include right after the class definition, but before any functions. That seemed the logical place - then all functions could use it. But the error states that I cannot place anything in between the class definition and a function definition (except of course for the vars of the class.)
I hope I made it clear enough what I am trying to do. Any suggestions?
THanks,
KB
I am reworking someone's code. The previous developer makes use of classes. That's fine.
I am incorporating an encryption/decryption class I have. It would be useful if some of the other classes could reference and make use of my enc/dec class -within their own class.
I suppose to do that I would have to use the inlcude or include_once function. I tried putting it in, but errored out. I had placed the include right after the class definition, but before any functions. That seemed the logical place - then all functions could use it. But the error states that I cannot place anything in between the class definition and a function definition (except of course for the vars of the class.)
I hope I made it clear enough what I am trying to do. Any suggestions?
THanks,
KB