我創建了一個新的模塊,以取代客戶/帳戶菜單,並有一個鏈接www.mysite.com/accountMagento的自定義URL
我現在想更改登錄,註冊和其他頁面顯示爲www.mysite.com/account/login等
,而不是回覆到客戶/帳號/密碼等
請告訴我做到這一點的最好方法是什麼?
以下是config.xml的代碼伊夫迄今取得....
<?xml version="1.0"?>
<config>
<modules>
<SquareNetMedia_MyAccount>
<version>0.1.0</version>
</SquareNetMedia_MyAccount>
</modules>
<frontend>
<routers>
<myaccount>
<use>standard</use>
<args>
<module>SquareNetMedia_MyAccount</module>
<frontName>account</frontName>
</args>
</myaccount>
</routers>
<layout>
<updates>
<myaccount>
<file>myaccount.xml</file>
</myaccount>
</updates>
</layout>
</frontend>
<global>
<helpers>
<myaccount>
<class>SquareNetMedia_MyAccount_Helper</class>
</myaccount>
</helpers>
<blocks>
<myaccount>
<class>SquareNetMedia_MyAccount_Block</class>
</myaccount>
</blocks>
</global>
</config>
Magento使用以下標準URL格式:site.com/modulename/controller/action如果你想要一個不同的網址格式,然後嘗試與magento重寫或使用一些.htaccess規則 – oscprofessionals 2013-03-14 20:50:17