Smarty {if} constructions, looks more complicated.

It's about construction with {else}

When the obvious parameter means oposite.



{if !$user->_logged_in} (example funcion with with no else might be just for logged in)
{include file='example1.tpl'} (not logged in)



{else}

{include file='example2.tpl'} (logged in)


{/if}


Smarty {if} constructions, looks more complicated. It's about construction with {else} When the obvious parameter means oposite. {if !$user->_logged_in} (example funcion with with no else might be just for logged in) {include file='example1.tpl'} (not logged in) {else} {include file='example2.tpl'} (logged in) {/if}
Yay
1
0 Commentaires 0 Parts 7KB Vue 0 Aperçu