[eluser]Georgi Budinov[/eluser]
To be honest, I have never tried out the 'if(): endif;'. This makes sense and a better alternative to the way I write now.
Code:
<? if ($alabala): ?>
<div><?=$alabala?></div>
<? endif; ?>
vs
Code:
<?php if ($alabala) { ?>
<div><?php echo $alabala; ?></div>
<?php } ?>
You got me here! I will try this approach in a few views to make a decision