Re: Newbie question....
| From: | Monte Ohrt | Date: | Fri, 27 Apr 2001 13:23:07 +0000 |
| Subject: | Re: Newbie question.... | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-614@lists.php.net to get a copy of this message | ||
{if not %barnavigation.last%}::{/if}
Luc Saint-Elie wrote:
>
> Hello,
>
> I have a stupid basic question
>
> ========= index.php ===========
> [...]
> $navHaut= array("<A
> href=\"/index.php\">Accueil</A>","<A
> href=\"links.php\">Les
> liens</A>","<A href=\"index.php?op=magazine\">Le
> Magazine</A>","<A
> href=\"irc.php\">Le Chat</A>");
> $template->assign("navHaut",$navHaut);
> [...]
>
> ========= index.tpl ==========
> [...]
> {section name=barnavigation loop=$navHaut}
> {$navHaut[barnavigation]} ::
> {/section}
> [...]
>
> ========== Resulting HTML ============
>
> value :: value :: value ::
>
> Question:
> How to avoid the last "::" ?
>
> Thanks
>
> Luc
>
> ---
> 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
> http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/