I am trying to do the following:
<li <?PHP ($this->pageName == 'index' ? ?>class="current"<?PHP : '')?>><a href="">Home</a></li>
But it is not working.
Is what I'm trying to achieve possible? If so what am I doing wrong?
I know it's not hard to put PHP in HTML lol. I was curious if a ternary operator could be used in a way that is similar to:
<?PHP if(1 == 1){?>
<p>Test</p>
<?PHP }?>