Yii Framework Forum: 请问表单中使用Get方式提交后参数问题 - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

请问表单中使用Get方式提交后参数问题 Rate Topic: -----

#1 User is offline   TJM 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 17-January 12

Posted 03 April 2013 - 02:06 AM

配置中设置urlFormat为path后,表单中使用get方式提交,参数是带在?后并用&分隔开,我使用CSqlDataProvider并带上pagination分页,分页的url被格式化为/隔开,点击其中一个分页url就会变成index.php/controller/action/parama/parama/paramb/paramb/page/N,再次get提交后就变成index.php/controller/action/parama/parama/paramb/paramb/N?parama=parama&paramb=paramb,也就是说,有2个相同的参数。
而urlFormat设置为get后则提交后获取不了controller和action。
请问这种情况怎么办好呢?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users