Nin*_*ina 4 php magento magento-1.6 magento-1.7
我已经为我的Magento网站的主页创建了一个新的模板phtml文件2columns-right-home.phtml.我想在这里提供登录表格.还有"创建新帐户","忘记密码"等链接.如何提供链接?
我尝试了以下方法:
<a href="<?php echo $this->getForgotPasswordUrl() ?>">Forgot password?</a>
Run Code Online (Sandbox Code Playgroud)
但该页面并未指向该链接.
使用getUrl函数来获取链接forgotpassword行动的account该控制器customer模块(其frontName恰好也是customer,更多).如此:
<a href="<?php echo Mage::getUrl('customer/account/forgotpassword') ?>">Forgot password?</a>
Run Code Online (Sandbox Code Playgroud)