title: calling action with id when dropdown change in yii
body: <pre><code>&lt;?php echo CHtml::dropDownList('Category', $model -&gt; cate_id, CHtml::listData(Category::model() -&gt; findAll(), 'id', 'name'), array('empty' =&gt; 'Select Category','submit'=&gt;array('advert/loadAdvert','id'=&gt;'5'))); ?&gt;
  </code></pre>
  
  <p><strong>i need to get selected dropdown list value and instead of hard coding id, 
  i have to place that value for id.</strong></p>
  
  <pre><code>public function actionloadAdvert($id) {
      $issueDataProvider = new CActiveDataProvider('Advert', array('criteria' =&gt; array('condition' =&gt; 'cate_id=:cate_id', 'params' =&gt; array(':cate_id' =&gt; $id), ), 'pagination' =&gt; array('pageSize' =&gt; 1, ), ));
      $this -&gt; render('advertisement', array('model' =&gt; Advert::model(), 'issueDataProvider' =&gt; $issueDataProvider, ));
  }
  </code></pre>
  
  <p>also what is the best book or resources for learning yii.</p>