Recent Topics

1 Mar 23, 2006 23:12    

Why not modify the function content() in _item.class.php doesn't return any variable but directly echoes the output, why not make such function return a varable?

Can be very handy some times have the variable containing the output.
I was thinking of something like

function content($return = false)

and

if ($return) return $output;
else echo $output;

could do the trick

Lorenzo Ferrara

2 Mar 24, 2006 01:36

OK, I can capture the output using the buffering functions...
http://it.php.net/ob_start

now... now do I know (varible??) if I'm reading a full post (clicking on permalink) or if I'm just viewing the incipit (still have to click on "Read More" or on the permalink)?


Form is loading...