template_filename

(ReachRSS >= 0.91)
template_filename -- Sets the template file to use

Description

string template_filename ( [string template] )

If template is set, this function will set the template filename that ReachRSS will use with output() and save().

template_filename() returns the previous template filename, which means if called without the template parameter you can determine the current template.

Example 1. template_filename() example

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

This example will set the template to "/path/to/my/template.tpl" and print the previous template's filename (by default "reachrss.tpl").

See also output(), save()

Back to Function List

 

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