Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Under OP 1.5 one could use a construct like:
<?php if (!isset($this->request->get['route'])) {
$this->request->get['route']='common/home'; // Чтобы не выдавало ошибку, если юзер набрал адрес в браузере руками
} ?>
<?php if ($this->request->get['route']=='common/home') { ?>
<li>
<a href="/" class="active">Главная</a>
</li>
<?php } else { ?>
<li>
<a href="/">Главная</a>
</li>
<?php } ?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question