title: Call another action from one action of the same controller
body: <p>I am new to YII. How to call an action from another action of the same controller.
  Suppose I am in action A. I need to call action B with two parameters. My controller name is Master Controller. How will I perform this. Please say me a solution. Thanks in advance.</p>
  
  <p>My controller:</p>
  
  <pre><code>class NimsoftController extends Controller
  {
      public function actionStore_action($action,$data_id)
      {
            $model= new NimsoftUserLoginAction;
            $model-&gt;user_id=Yii::app()-&gt;user-&gt;id;
            $model-&gt;action=$action;//"Deleted";
            $model-&gt;affected_data_id=$data_id;//"22";
            $model-&gt;save();
      }
  
      public function actionSearch($id)
      {
          $cust_id = $id;
          $criteria = new CDbCriteria();
          $criteria-&gt;condition = "host_customer_id = '$cust_id'";
          $details = NimsoftHost::model()-&gt;find($criteria);
  
          $criteria2 = new CDbCriteria();
          $criteria2-&gt;condition = "cust_id= '$details-&gt;host_customer_id'";
          $name = MasterCustomers::model()-&gt;find($criteria2);
  
          $dataProvider = new CActiveDataProvider('NimsoftHost', array(
              'criteria' =&gt; $criteria,
              'pagination'=&gt;array('pageSize'=&gt;40)
          ));
          $model = new NimsoftHost();
          $this-&gt;actionStore_action(array('action'=&gt;'search', 'data_id'=&gt;$cust_id));
          $this-&gt;render('index',array(
              'dataProvider' =&gt; $dataProvider,
              'details' =&gt; $details,
              'name' =&gt; $name-&gt;cust_name,
              'model' =&gt; $model
          ));
      }
  }
  </code></pre>