View Single Post
  #1 (permalink)  
Old 07-18-2008, 02:18 PM
greboguru's Avatar
greboguru greboguru is offline
Junior Member
 
Join Date: Feb 2008
Location: UK
Posts: 16
Default Zend_View_Helper_Url problems with parameters

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
Reply With Quote