RE: [Phplib-users] 2 Problems (Reset Button + Template Problem)
Brought to you by:
nhruby,
richardarcher
From: Benjamin H. <ho...@eu...> - 2002-10-09 13:40:38
|
call by reference thats what i was searching for ;) works fine now ;) > ---------- > From: Layne Weathers[SMTP:la...@if...] > Reply To: la...@if... > Sent: 09 October 2002 15:37 > To: 'Benjamin Hoft'; php...@li... > Subject: RE: [Phplib-users] 2 Problems (Reset Button + Template Problem) > > > > printallNEWS($t); > > > > > > function printallNEWS($t) > > Change your function declaration to: > > function printallNEWS(&$t) > { > .... > } > > Note the ampersand - that will tell the function to reference your template > object rather than copy it to a new object that is lost after the function > runs. Alternatively, if you only ever use one template object you could: > > function printallNEWS() > { > global $t; > .... > } > > > Layne Weathers > Ifworld Inc. > |