0
海基会网址ZF1你能够创建通过做海基会urkl以下产生的Zend Framework 2
<a href="<?php $this->url(array('controller'=>'MyCOntroller',
'action'=>'MyActions'));?>">My link</a>
我们该怎么做,在ZF2?
海基会网址ZF1你能够创建通过做海基会urkl以下产生的Zend Framework 2
<a href="<?php $this->url(array('controller'=>'MyCOntroller',
'action'=>'MyActions'));?>">My link</a>
我们该怎么做,在ZF2?
您也实现了类似的结果在Zend框架2的东西,如下列:
<a href="<?php echo $this->url(
'route-name',
array('controller'=>'MyCOntroller', 'action'=>'MyActions')
); ?>">My link</a>
查看各URL view helper和Controller URL Plugin Helper
的 reference about routing和文档