【发布时间】:2016-09-06 12:01:28
【问题描述】:
我需要在 zend 框架中重写 URL 的帮助。如果我在 URL 下方打印:
echo $this->url(array('controller'=>'guestbook','action'=>'edit','id'=>$entry->id), null, TRUE);它会生成像这样的 url:http://localhost/guestbook/public/index.php/guestbook/edit/id/1
但是我怎样才能在zend框架中生成像:http://localhost/guestbook/public/index.php/guestbook/edit/1这样的url呢?
我不想在 URL 中出现 'id'。请帮忙。
【问题讨论】:
-
您提出了 35 个问题,只接受了 7 个答案....!请接受您认为有帮助的答案.....
标签: zend-framework