0

I want to add a url generated from another function in TCPDF's footer.

tcpdf edit footer

Similar to that, but with a variable from a function, let's call it:

function function_name() {
$variable = 'urlvalue';
}

How would I get this information ($variable) into the TCPDF footer? Would I have to make the variable global? Could I pass it in some manner?

Community
  • 1
  • 1
Steven Matthews
  • 9,705
  • 45
  • 126
  • 232
  • I'm instantiating an extended class inside my function. I want to pass a variable to this extended class. – Steven Matthews Jan 30 '14 at 20:28
  • you can try [How can I make a custom dynamic footer in TCPDF with data taken from a database?](http://stackoverflow.com/a/20479212/2310786) solution. change DB stuff with your URL stuff. – AbderrahimDz24 Jan 30 '14 at 21:03

0 Answers0