Php 我想在ZF1中使用Zend router设置参数数组

Php 我想在ZF1中使用Zend router设置参数数组,php,zend-framework,zend-controller-router,Php,Zend Framework,Zend Controller Router,我想通过Zend_控制器_路由器自定义url 我知道参数为1时的方式 喜欢这个网址吗 /fruits?name=banana 能够通过Zend路由器进行写入 /水果/香蕉 $route = new Zend_Controller_Router_Route( 'fruits/:name/*', array('controller'=>'fruits','action'=>'index') ); 我买不到这样的香蕉 $fruits = $this->getRequest()-

我想通过Zend_控制器_路由器自定义url

我知道参数为1时的方式

喜欢这个网址吗

 /fruits?name=banana
能够通过Zend路由器进行写入

/水果/香蕉

$route = new Zend_Controller_Router_Route(
'fruits/:name/*',
array('controller'=>'fruits','action'=>'index')
);
我买不到这样的香蕉

$fruits = $this->getRequest()->getParam('name',NULL);
但当参数大于1时,我不知道如何对Zend路由器进行编码

我想删除这个url

/fruits?name[]=banana&name[]=apple&name[]=grape
追随

/fruits/banana/apple/grape
我想让他们像这样进入contoroller

$fruits = $this->getRequest()->getParam('name',NULL);
我希望得到像这样的数组参数

$fruits = array(
'banana',
'apple',
'grape'
);
请让我知道路