Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/247.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 在Magento扩展中使用多个前端值_Php_Magento - Fatal编程技术网

Php 在Magento扩展中使用多个前端值

Php 在Magento扩展中使用多个前端值,php,magento,Php,Magento,我的道歉如果这已经被涵盖,我做了一些谷歌富,我没有找到任何类似的,所以我会假设它不是一个重复 我已经编写了一个自定义Magento扩展,客户端希望有两个URL指向它。这是一个产品注册模块,路由器的config.xml数据如下所示: <config> <frontend> <routers> <registerform> <use>standard</u

我的道歉如果这已经被涵盖,我做了一些谷歌富,我没有找到任何类似的,所以我会假设它不是一个重复

我已经编写了一个自定义Magento扩展,客户端希望有两个URL指向它。这是一个产品注册模块,路由器的config.xml数据如下所示:

<config>
    <frontend>
        <routers>
            <registerform>
                <use>standard</use>
                <args>
                    <module>Ashmenon_ProductRegister</module>
                    <frontName>product-register</frontName>
                </args>             
            </registerform>
        </routers>      
    </frontend>
</config>

标准
Ashmenon_产品登记册
产品登记册
现在,客户要求我也将“/保修”指向同一模块。我尝试在
中添加另一个
节点,但似乎不起作用。URL重写(在此config.xml中指定)似乎也不起作用

我做错什么了吗?关于Magento扩展开发的文档和教程(至少是到目前为止我找到的那些)都是垃圾,我有点迷路了