Yii Framework Forum: Cgridview Using Get Instead Of Post For Deleting? - Yii Framework Forum

Jump to content

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

Cgridview Using Get Instead Of Post For Deleting? Rate Topic: -----

#1 User is offline   Jorgee 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 58
  • Joined: 22-March 13

Posted 22 May 2013 - 11:04 AM

Hi, I've noticed that CGridView buttons use POST, but don't really POST anything. It makes a POST to a URL like a GET.

Example:

It POSTs to site/controller/action/param1/value1/param2/value2, while I think it should POST to site/controller/action and have param1 and param 2 in POST body.

Is it possible to change it?

Thanks
0

#2 User is offline   Jorgee 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 58
  • Joined: 22-March 13

Posted 22 May 2013 - 02:43 PM

Well I've learned about RESTful (or read at least) and this makes more sense.

A guy told me in StackOverflow that the important thing is the verb/method and not the body/url.
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