0

我有 mageanto 网站,我在菜单列表中写下条件。

那是菜单活动类。

我写了这个条件:

<li class="<?php if (Mage::helper('core/url')->getCurrentUrl() === $this->getUrl('about-fruit-store')):?>active<?php endif;?>"><a href="<?php echo $this->getUrl('about-fruit-store')?>"><?php echo $this->__('About Us') ?></a></li>

但任何时候都不会显示活动课程。

我想显示 li 中的活动课程。我怎样才能做到这一点?

4

1 回答 1

0

Var_dump the two statements and the if statement, they should be the same length and the if should be true, obviously it is not. If it is there should be an active. Easy going: WHY is the if false. Thats the question to answer.

于 2012-08-04T19:23:19.603 回答