A
A
Anton2019-02-22 18:43:14
PHP
Anton, 2019-02-22 18:43:14

How to implement this tpl example in pure php?

How to write this example in pure php?

{if strstr($smarty.server.REQUEST_URI, '/page') !== false}class="activepage"{else}{/if}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Loginov, 2019-02-22
@boypush

<?php if(strstr($_SERVER['REQUEST_URI'], '/page') !== false): ?>class="activepage"<?php endif; ?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question