Re: Hrm... if problems.
| From: | Monte Ohrt | Date: | Tue, 06 Mar 2001 03:51:04 +0000 |
| Subject: | Re: Hrm... if problems. | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-313@lists.php.net to get a copy of this message | ||
I just tried your sample, I didn't have any problems on solaris.
Jason Alexander wrote:
> Hey all,
>
> My apologies for something so simple, but I've been wracking my brain here
> trying to figure out what I'm doing wrong, and I can't tell if it's my
> severe lack of caffeine this evening, or the Dallas Mavericks' miserable
> game against Orlando that I just witnessed.
>
> But, I'm attempting to do:
>
> {if $section == "terms"}
> Terms of Use
> {elseif $section == "privacypolicy"}
> Privacy Policy
> {/if}
>
> Just for a simple if test, and I'm getting a parse error... checking the
> compile shows invalid interpretation:
>
> <?php elseif ($section == "terms"): ?>
> Terms of Use
> <?php elseif ($section == "privacypolicy"): ?>
> Privacy Policy
> <?php endif; ?>
That first one should read <?php if($section == "terms"): ?>
Can anyone else reproduce this error?
>
>
> Any ideas? I'm still running 1.2.2 because of issues I've had with 3.0
> (related to platform: Win2k).
What problems exactly? If it is a file writing problem, comment out the
flock() call in _write_file
>
>
> Yo no comprende at this point.
>
> TIA,
> -Jason
>
> ---
> 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/