title: Yii passing parameters to widget
body: <p>Sorry if I am using wrong keyword. Might be I did not get sufficient information due to wrong keyword.</p>
  
  <p>we create widget in Yii by this way:</p>
  
  <pre><code>class streamList extends CWidget {
    //do some stuff
  }
  </code></pre>
  
  <p>Also, we use this widget anywhere as </p>
  
  <pre><code>$this-&gt;widget("application.components.widget.streamList");
  </code></pre>
  
  <p>How can we write the widget in such a way that it accepts parameter(s) as</p>
  
  <pre><code>$this-&gt;widget("application.components.widget.streamList",array('title'=&gt;'Posts');
  </code></pre>
  
  <p>I googled but did not solve. Please help, thank in advance.</p>
  
  <p><strong>Edit log:</strong>
  Also, how can we define default parameter value to 'titile'? I tried <code>public $title = Shk::getTitle()</code>, but it did not work.</p>