output

(ReachRSS >= 0.91)
output -- Loads cached data and refreshes any channels that need refreshing then sends the parsed template to the browser

Description

boolean output ( [string template] )

This functions calls startup() then loads the template, parses it, and outputs the results to standard out (usually the browser). This is the easiest way to use ReachRSS.

If template is set, ReachRSS will use this filename as the template file. If it doesn't exist, an error is displayed and output() returns false. If template is not set, the default template (reachrss.tpl) is used.

output() returns true on success, false if there was a problem.

Example 1. output() example

$ReachRSS = new ReachRSS();
$ReachRSS->output("/path/to/my/template.tpl");

See also startup(), template_filename(), save()

Back to Function List

 

Home | Features | Samples | Demo | Download | Register | Help / Support