RE: [Phplib-users] 2 Problems (Reset Button + Template Problem)
Brought to you by:
nhruby,
richardarcher
From: Layne W. <la...@if...> - 2002-10-09 13:22:55
|
> > 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. |