post - Get all _POST vars using a loop in Yii -


i have code

$str = ''; foreach ($_post $k => $v) {     $str .= $k.'='.$v; } 

is possible make same chttprequest? didn't find method it.

need md5 in end, there no security issues.

i dont think chttprequest intended post data, yii uses $_post variable, gii's default output example can this:

public function actioncreate()     {         $model=new model;          // uncomment following line if ajax validation needed         // $this->performajaxvalidation($model);          if(isset($_post['model'])) //<- post data var         {             $model->attributes=$_post['model']; //<- post data var             if($model->save())                 $this->redirect(array('view','id'=>$model->id));         }          $this->render('create',array(             'model'=>$model,         ));     } 

Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -