How can I encrypt the post method data from VIEW
in YII
? Also is this is a good way to write such a function? It should encrypt POST data in VIEW
that is sent to - and decrypted in - the controller.
'buttons' => array(
'Edit' =>array(
//'label' => 'Edit',
'url' => 'Yii::app()->createUrl("Controller/Action",array("doc_id"=>$data->id))',
),
When the button is presed, i want to encrypt "doc_id"
and sent to controller for further action where the encrypted data is again decrypted.
The URL looks something like this..
projectName/ControllerName/actionName/a2ewe34r44rf454r
But I don't know where to write the function.