【发布时间】:2015-05-15 10:09:53
【问题描述】:
我想要路由中控制器方法中的 URL。
$route = $this->url('my/route', array('id' => $myID), array(
'force_canonical' => true,
));
这会给我路由对象,但我想要的是像 URL
$link = "http://example.com/my/route/23"
在变量中,因为我必须将其发送到其他操作以显示为文本。
【问题讨论】:
标签: php zend-framework zend-framework2