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和文檔