Re: section naming tips

From: Date: Sat, 03 Mar 2001 14:51:33 +0000
Subject: Re: section naming tips
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-272@lists.php.net to get a copy of this message
Whatever makes sense to you.... I usually name the section something that has to do with the data it loops. For instance, if you're looping through address, phone, fax, email, etc., you might name it contact_info or customer_info. Another idea, if you don't have any complicated nested sections, just name the section "section", for consistancy. You can name all of your sections the same if they are not nested. (right Andrei?) Jim Harlindong wrote: > > Hi, > > I find myself using this naming all the time: > > {section name=company loop=$companies} > > I mean.. always duplicating the section name and loop variable name.... any > tips on a better naming strategy? > > Thanks > > --- > You are currently subscribed to smarty as: monte@ispi.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at FwD=‹FåoLže > 7­http://www.phpinsider.com/php/code/Smarty/ -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

« previous php.smarty.general (#272) next »