You are here: Re: [SMARTY] Creating custom loop block function « Smarty Templates Posts « IT news, forums, messages
Re: [SMARTY] Creating custom loop block function

Posted by "messju mohr" on 12/23/05 14:10

On Fri, Dec 23, 2005 at 01:59:05PM +0200, Kaloyan Tsvetkov wrote:
> On 12/23/05, messju mohr <messju@lammfellpuschen.de> wrote:
> >
> >
> >
> > wrong. reread http://smarty.php.net/manual/en/plugins.block.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/plugins.block.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 ?

right. that's what I did in my example. or it could be done by the
*opening* {cell} tag.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация