Re: [phplib] Using Template class - How do I include another PHP script? From: nathan r. hruby (nhruby <email protected>)
Date: 04/19/01

on 4/19/01 6:43 AM, Rogers, Paul at Paul.Rogers <email protected> wrote:

>
> Can I use require/include to run the second script and then use the table
> show_result() to place the output in a variable which can then be parsed by
> the first script?
>

Yes any output from anything (so long as it's text) can be inserted into a
template variable and parsed accordingly.

$tpl->set_var("SOMETABLE", $table->show_result());

-n

-- 
......
nathan hruby - nhruby <email protected>
computer support specialist
department of drama and theatre
http://www.drama.uga.edu/
......

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>