Re: [SMARTY] Creating custom loop block function

boots <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
--- Kaloyan Tsvetkov <[email protected]> wrote:
> I did that. But then all my rows are populated with the values of the last
> row. For example, the calls from the compiled version to <?php echo
> $this->_tpl_vars['SKU']; ?> always return the {SKU} from the last row. It
> seems to me all the loop iterations are done before accessing the first
> {cell} block.
> 
> It seems that I am doing something wrong, but I can not figure it out.

Hi. I'm not sure this will be helpful, but I have been following this thread
and I can't help but be reminded of my own experiences trying to fully grok
implementing more exotic looping functionalities in Smarty. To that end I
wanted a concrete example of a relatively complex interaction; not finding any,
I built one. The result (though imperfect) is at the wiki with a discussion
thread at the forums. I think it has some overlap with what you are doing so
perhaps it will serve to give you an idea that you can build on.

Code at the Wiki:
  http://smarty.incutio.com/?page=BandedReportGenerator

Discussion at the Forum:
  http://www.phpinsider.com/smarty-forum/viewtopic.php?t=4125

Greetings,
xo boots


		
__________________________________________ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.