[phplib] templates limit quick functionality adding? From: dog (animal <email protected>)
Date: 10/20/00

Hi,
I'm trying to implement a site using PHPLIB Templates. To speed up
development, I want to use scripts like phpPolls to just slap on
functionality on the site. That particular program requires me to only
include some code and stick in a function to display a nice poll. The
obvious problem is it's usage of 'echo' and particularly 'printf's that make
it impossible to control the location of the output.

Based on what I can see, it seems like the only option is to go through the
entire code for the addon script and rewrite it so the result of every
'echo' in fact get's put into a string which gets returned by the function.
Then all I have to do is something like:
   //as all output from that function is returned in a string
    $pollvar=makepoll(parameters ...)
    $t->parse($pollvar,$template)

Would I be correct in assuming this is my only/best option? The problem with
that being that heavily editing prewritten programs could cause consequences
that I wouldn't have taken into account - not to mention negating the ease
of merely putting a reference to a function.

Thanks.

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