Welcome Guest, Not a member yet? Register   Sign In
In views use <?php echo $title; ?> or <?=$title?> ?
#13

[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>&lt;?=$alabala?&gt;</div>
&lt;? endif; ?&gt;

vs

Code:
&lt;?php if ($alabala) { ?&gt;
    <div>&lt;?php echo $alabala; ?&gt;</div>
&lt;?php } ?&gt;

You got me here! I will try this approach in a few views to make a decision Smile


Messages In This Thread
In views use &lt;?php echo $title; ?&gt; or &lt;?=$title?&gt; ? - by El Forum - 09-13-2010, 06:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB