日期:2014-05-17  浏览次数:20605 次

zf数组传参问题......
<a href="<?php echo $this->url(array('controller'=>'zufang')) ?>" >租房</a>


<a href="<?php echo $this->url(array('controller'=>'ershoufang' )) ?>">二手房</a>
  <a href="<?php echo $this->url(array('controller'=>'ershoufang')) ?>">普通住宅</a> 
  <span>|</span> 
  <a href="<?php echo $this->url(array('controller'=>'ershoufang','action'=>'xiezilou')) ?>">写字楼</a>



点击二手房的 xiezilou url http://fang178.workgroup/zufang/xiezilou 在点租房 http://fang178.workgroup/zufang/xiezilou 怎么xiezilou也当参数传了 .....???  


------解决方案--------------------
点击二手房的写字楼url怎么会是http://fang178.workgroup/zufang/xiezilou ?
不是应该http://fang178.workgroup/ershoufang/xiezilou ??

这样试试:
<a href="<?php echo $this->url(array('controller'=>'zufang','action'=>'index')) ?>" >租房</a>
<a href="<?php echo $this->url(array('controller'=>'ershoufang','action'=>'index')) ?>">二手房</a>
<a href="<?php echo $this->url(array('controller'=>'ershoufang','action'=>'index')) ?>">普通住宅</a>