For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > January 2006 > Re: [SMARTY] Creating custom loop block function









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] Creating custom loop block function
Kaloyan Tsvetkov

2006-01-09, 10:21 pm

On 12/23/05, messju mohr <messju@lammfellpuschen.de> wrote:
>
>
>
> wrong. reread http://smarty.php.net/manual/en/plu...k.functions.php
> and maybe reread your compiled template.
>
>
>

OK, the Smarty docs state that:

The value of *$content* variable depends on whether your function is called
for the opening or closing tag. In case of the opening tag, it will be null,
and in case of the closing tag it will be the contents of the template
block. Note that the template block will have already been processed by
Smarty, so all you will receive is the template output, not the template
source.

http://smarty.php.net/manual/en/plu...k.functions.php

So in order to make the {cell} calls work, I have to populate them in
advance by the {row}tag, right ? And this has to be done by the opening
{row} tag, right ?

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com