chtml LINK with POST method

hello guys, i trying to send an post method using chtml link to my controller which is event, how does my method actiondelete receive the POST message?


CHtml::link("<span class=‘glyphicon glyphicon-remove’></a></span>",‘event/delete’,array(

                'submit' =&gt; array('event/delete'),

                'params' =&gt; array('id' =&gt; &#036;data-&gt;ID),

                'csrf' =&gt; true));

event controller


If I understood right what U want to do, U should configurre clientChange in htmlOptions to suite your need. It’s submiting to given url via post by default (if link is not inside a form)

Check this :