title: how to give multiple conditions in actionView for render in yii
body: <p>i  have a module that have different render with different conditions so i have used like</p>
  
  <pre><code>    if($p_id != '') {
          $this-&gt;render('view', array(
            'model' =&gt; $this-&gt;loadModel($id, 'Supplier'),
            'modeln' =&gt; $this-&gt;loadModel($p_id, 'Permit'),
          ));
      } else {
          $this-&gt;render('view', array(
            'model' =&gt; $this-&gt;loadModel($id, 'Supplier'),
          ));
  </code></pre>
  
  <p>it works fine but i have 5 to 6 conditions like this ,so how can i handle this? any easy way than this? thanks</p>