Oreamnos
11-25-2005, 01:00 AM
i have a custom page with some functions that return values. Example:
function test() {
$print_this = "hello!";
return $print_this;
}
but if i put $print_this in my template it doesn't show anything. if i just have $print_this = "hello!"; outside of the function, and $print_this in my teemplate, it works.
how do i handle data that is produced in a function in my templates?
eric
function test() {
$print_this = "hello!";
return $print_this;
}
but if i put $print_this in my template it doesn't show anything. if i just have $print_this = "hello!"; outside of the function, and $print_this in my teemplate, it works.
how do i handle data that is produced in a function in my templates?
eric