HI,
I'm using Zend_View_Helper_Url to build up the anchor hrefs in my app. So in my view script I might have
Code:
<a href="<?php $this->url(array('controller'=>'index', 'action'=>'modify', 'id'=>'001')); ?>">link1</a>
<a href="<?php $this->url(array('controller'=>'index', 'action'=>'modify', 'id'=>'002')); ?>">link2</a>
<a href="<?php $this->url(array('controller'=>'index', 'action'=>'modify', 'id'=>'003')); ?>">link3</a>
This generates the correct links and clicking on the links takes me to the correct 'page'. My problem is that the other links eg
Code:
<a href="<?php $this->url(array('controller'=>'index', 'action'=>'add')); ?>">add</a>
now have the 'id' paremeter apended to them as well.
Any thoughts on what I'm doing wrong?
Thanks
gG