title: Passing variable along Chtml button in Yii
body: <p>Iam trying to pass variable along with Chtml button in Yii using the following code</p>
  
  <pre><code> echo CHtml::button('Update', array('submit' =&gt; array('serviceRequest/Update',array('id'=&gt;$requestId))));
  </code></pre>
  
  <p>But it is showing 404 error due to the url problem. On clicking some dummy characters is getting added to the "<em>id</em>" .<br>  On clicking the button Iam getting the following url. <code>../serviceRequest/Update/0%5Bid%5D/4</code> . How to remove this special characters and how can I get the correct url as <code>../serviceRequest/Update/id/4</code> . I need button itself there..<br> Thanks in advance</p>