I works well but when I have added the code part <?php e($tag == $tagged, 'class="btn special"') ?>
to have class special on the current tag, sometimes it works, sometimes I get an error Undefined variable: tagged
It seems that the error is coming randomly and I have difficulties to identify the issue.
Even tough some posts in the forum address similar issues I didn’t succeed to solve my own problem.
Thanks for any help
Well, the problem with your code is that $tagged is undefined if $data['tag'] does not exist. Where does $data come from, from a route? In any case, you should set $tagged to empty if the condition is not met.