title: Yii CGridview not filtering
body: <p>I'm trying to work with a YII CGridview to display some data.</p>
  
  <p>This is home my model search function looks like:</p>
  
  <pre><code>/**
   * Retrieves a list of models based on the current search/filter conditions.
   * @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions.
   */
  public function search()
  {
      $criteria=new CDbCriteria;
      $criteria-&gt;compare('ip',$this-&gt;ip,true);
      $criteria-&gt;compare('first_use',$this-&gt;first_use,true);
      $criteria-&gt;compare('last_use',$this-&gt;last_use);
      $criteria-&gt;compare('memberid',$this-&gt;memberid);
      $criteria-&gt;compare('countryid',$this-&gt;countryid);
  
      return new CActiveDataProvider(get_class($this), array(
          'criteria'=&gt;$criteria,
      ));
  }
  </code></pre>
  
  <p>And this is how my view looks like</p>
  
  <pre><code>$this-&gt;widget('zii.widgets.grid.CGridView', array(
          'id'=&gt;'iplog-grid',
          'dataProvider'=&gt;$oIPLog-&gt;search(),
          'filter'=&gt;$oIPLog,
          'summaryText' =&gt; 'showing you {start} - {end} of {count} logged Ips',
          'columns'=&gt;array(
              array(
                  'name'=&gt;'ip',
                  'type'=&gt;'raw',
              ),
              array(
                  'name'=&gt;'first_use',
                  'type'=&gt;'datetime',
              ),
              array(
                  'name'=&gt;'last_use',
                  'type'=&gt;'datetime',
              ),
          ),
      ));
  </code></pre>
  
  <p>Displaying the CGridview works, but I can't seem to get the filter on top of it to work. It sends the call and I don't get any error as reponse, it just returns the whole unfiltered data again..</p>
  
  <p>Any clues?</p>