PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.smarty.general > Creating custom loop block function
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Creating custom loop block function

Réponse
 
LinkBack Outils de la discussion
Vieux 24/12/2005, 00h06   #9
boots
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [SMARTY] Creating custom loop block function

--- Kaloyan Tsvetkov <kaloyan@gmail.com> 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 ful, but I have been following this thread
and I can't 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-for...pic.php?t=4125

Greetings,
xo boots



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


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 18h11.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07686 seconds with 9 queries