magento 中 a标签使用

以连接跳转到一个cms page为例:

在phtml文件中:

<a href="<?php echo $this->getUrl('')?>some page">网址+some page  </a>

红色<?php echo $this->getUrl(”)?>为获得网站网址,蓝色字为页面的SEF URL Identifier

在cms的page或者block中:

<a href="{{store url=''}}about-us/">网址+About bagandcart.com</a>

所以这个<?php echo $this->getUrl(”)?> 与{{store url=”}} 动态获得网址是很有用的

转载标明出处: hellokeykey.com 右兜钥匙

《magento 中 a标签使用》有3个想法

评论已关闭。