1
LazyBadger
How to check content of Smarty-variable?

I try to write in pure Smarty smth. like

if (!empty(var)) {}

in order to don't write block's and page content's decaoration around empty places (as in happens now with empty content in Bizzware's themes)
Quis custodiet ipsos custodes?

Webmaster of
XOOPS2.RU
XOOPS Modules Proving Ground
XOOPS Themes Exhibition

2
Dave_L
Re: How to check content of Smarty-variable?
  • 2005/8/4 0:07

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


You can do this:

<{if !empty($var)}>
   ...
<{/if}>

Login

Who's Online

309 user(s) are online (210 user(s) are browsing Support Forums)


Members: 0


Guests: 309


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits