Re: FastTemplate Newbie
| From: | Joseph H Blythe | Date: | Wed, 29 Nov 2000 22:16:31 +0000 |
| Subject: | Re: FastTemplate Newbie | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27912@lists.php.net to get a copy of this message | ||
"Robert V. Zwink" wrote:
>
> Looks like you are already parsing MAIN. I don't think you can parse
> something twice.
>
> Move all of the parse lines to the end of the file, just above FastPrint
>
> Then change your function. You don't want it to echo anything in
> FastTemplate. Assign your output to a variable, then return the value at
> the functions end.
>
> Like this:
>
> Function array2links($arr) {
>
> while ( list( $key, $val ) = each($arr)) {
> $link = "<a href=\"view.php?Cat=$key\"
> title=\"$val\">$val</a><br>";
> $buffer .= "$link";
> }
> return $buffer
> }
>
> I hope this helps, if not don't hesitate to ask. I use FastTemplate all the
> time, and might be able to help.
>
Thanks for all your help it seems to be working fine now. Im sure I will
run into some more questions for you later :-)
Cheers
Joseph