Hello Is there a way to create a link in yii 1 with data transfer using the method of post and not het? Thank. Example using het:

function($data){ return CHtml::link("Ссылка",Yii::app()->controller ->createUrl("info",array("result_info‌​" => $data->result_info,"site"=>$data->site, 'cod' => $data->result_cod))); } 

    1 answer 1

    Post method applies to form only. Your task is solved using the form.

    POST (HTTP)

    • and maybe there is some way to hide the data in the address bar? To just not see what exactly is transmitted? - Roma Tulaydan
    • Describe the entire task and partially lay out the code. Think of what you can do. - Urmuz Tagizade
    • function ($ data) {return CHtml :: link ("Link", Yii :: app () -> controller-> createUrl ("info", array ("result_info" => $ data-> result_info, "site" = > $ data-> site, 'cod' => $ data-> result_cod))); } - Roma Tulaydan
    • it is necessary that array ("result_info‌" ....) is not displayed in the address bar - Roma Tulaydan
    • Add these lines to the question please. Not readable ... - Urmuz Tagizade