Zend Framework Zend_View
在view层,可以用
$this->url(array('controller'=>'user', 'action'=>'home', 'u'=>$row['userid']), null, true)
生成一个url
如果想在controller中调用类似方法,代码如下:
$this->_helper->url($action [, $controller [, $module [, $params]]]);
或者
$this->_helper->url->url(array(...));
再或者
$this->view->url(...);
均可