Magento定制模块,带有带有添加.html扩展名的定制URL [英] Magento custom module with custom url with add .html extension
本文介绍了Magento定制模块,带有带有添加.html扩展名的定制URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了一个模块,其前端名称为test.现在我想要一个
I have created an module and its front end name is test . Now i want a URL like
www.exmpale.com/test/red.html (original structure is like 'test/index/index/valuid/1/').
www.exmpale.com/test/green.html (original URL is like 'test/index/index/valueid/3/').
我的crontroller是 indexCrontroller
,操作是 indexAction
,红色/绿色将从表中动态生成.表的结构就像
Wheremy crontroller is indexCrontroller
and action is indexAction
and where red /green ,will coming dynamic from a table.
The Table is structure is like
tab_id value
1 red
2 blue
3 green
请帮助我.
推荐答案
您需要为这些URL实现 Router .请点击此链接
You need to implement the Router for these URLs. please follow this link
http://inchoo.net/ecommerce/magento/custom-router-in-magento/
这篇关于Magento定制模块,带有带有添加.html扩展名的定制URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文