我是Zend Framework的新手。我有一个页面,就是:避免在Zend Framework路由中使用“/ index/index”两次
http://localhost/demo/public/index/index/catid/art
我想改变这种状况到
http://localhost/demo/public/art
我不知道该怎么做。
另外,它为什么要把index
两次?即使我的分页有,如:
http://localhost/demo/public/index/index/page/2
在我看来有点烦人。我想分页是
http://localhost/demo/public/page/2
有没有办法做到这一点?谢谢!
你真的需要由具有“/演示/演示/公/”,在每一个URL前缀来迷惑你的问题在你的控制器的网页PARAM?我不得不假设你的baseURL从'/ demo/demo/public /'开始。 – Layke
好的,我修好了。 – raygo