我在Magento之外創建了一個SOAP服務器(我們稱它爲www.example.com/soap/)。目錄/soap
看起來是這樣的:Magento模塊將舊網址路由到控制器/動作
example.wsdl
example_server.php
有跡象表明,我忽略了,因爲用戶不會看到這些輔助類。我想要做的就是將這些代碼移到Magento模塊中,並使用路由器來避免強迫用戶更改他們的URL。這可能嗎?例如,當用戶請求www.example.com/soap/example.wsdl時,我想將其路由至My_Newsoap_IndexController::wsdlAction()
。
這是我在config.xml中已經得到了現在:
<frontend>
<routers>
<newsoap>
<use>standard</use>
<args>
<module>My_Newsoap</module>
<frontName>soap</frontName>
</args>
</newsoap>
</routers>
</frontend>
非常好,謝謝Alan! – gandalf007 2012-02-03 13:13:10