I was wondering if someone can help me out with this. For my system I made i'm using .tpl files for viewer files. The problem underlays in using if else statements.
Like this would be an example of an tpl file:
<div class="menu">
<li>Home</li>
<!-- Checking if has admin rights -->
[IF='isadmin']
<li>Admin</li>
[ENDIF]
<!-- End of checking -->
</div>
But how can I implent this in PHP?
I already searched in stackoverflow, but only found answers as you just need to use PHP for this. This isn't the right way for me to use PHP. The system is already too complicated to change everything to PHP and using PHP as viewer doesn't pass the requirements.
Thanks in advance!