I've noticed in all the examples that the controller actions all access $_POST, $_GET directly. Is this the norm for yii? or is there a object that will handle the processing of the the request data?
I've tried looking though the documentation and couldn't find any reference of such an object.
Thanks!
Page 1 of 1
Request Handler Object to handle raw request data
#2
Posted 24 March 2010 - 01:28 AM
Hi, the Yii request object supports this: gerParam(), getPost(), getQuery()
You may use $_GET directly when you know the param you are trying to access is present (for example defined in an url-rule). It's your choice in the end.
You may use $_GET directly when you know the param you are trying to access is present (for example defined in an url-rule). It's your choice in the end.
Share this topic:
Page 1 of 1

Help












