Re: what's the best way to share variables between main script and template files

2006-10-07 Thread Jonathan
On Oct 7, 2006, at 11:12 AM, GZ Dark wrote: But is it the best way to use global vars for the sharing under modperl?is there any other good way?Thanks. pnotes personally though, i think you should opt for a more OOP approach and create a new header and footer object , explicitly passin

what's the best way to share variables between main script and template files

2006-10-07 Thread GZ Dark
Hello,list, Give my main srcipt is index.cgi,it require the two files of "header" and "footer" which are HTML templates. Where in index.cgi: use "header"; some logic codes... use 'footer"; Then it'll generate a dynamic page. My question is,how can I share the variables defined in the inde