我是magneto的新手。我爲webservice創建了一個自定義模塊。我已經完成忘記密碼功能,但我正在獲得404頁面。爲控制文件自定義模塊的magento中的404頁面
我的文件夾結構:
app/code/local/Blazedream/Oauth/controllers/Customer/AccountController
class Blazedream_Oauth_Customer_AccountController extends Mage_Customer_AccountController
{
public function forgotPasswordPostAction()
{
echo"hiiiii";exit;
}
}
我的配置文件:
<?xml version="1.0"?>
<config>
<modules>
<Blazedream_Oauth>
<version>0.1.0</version>
</Blazedream_Oauth>
</modules>
<frontend>
<routers>
<oauth>
<use>standard</use>
<args>
<modules>
<Blazedream_Oauth before="Mage_Oauth">Blazedream_Oauth</Blazedream_Oauth>
</modules>
</args>
</oauth>
</routers>
</frontend>
</config>
我的模塊被啓用。
我的網址運行forgotPasswordPostAction
http://xxxxxxxxxx/xxxxxx/index.php/oauth/customer/account/forgotpasswordpost
我得到404頁,我不知道我做了錯誤。
如果我沒有創建控制器文件夾內的客戶文件夾中創建的AccountController文件,然後將其執行並打印「hiiiiiiiii」 但如果我創建的文件夾,yhen它顯示404頁..
誰能幫助我解決這個問題?
很難說出你在問什麼。這聽起來像你的控制器正在工作,但不是當它在你期望的目錄中 - 是正確的嗎?您是否在配置更改之間清除(或禁用)緩存? – STW
你是絕對正確的。我已清除緩存,仍然獲得404頁面。 – tttt