title: cant achieve customised pagination in yii
body: <p>Here I go I need a customised pagination in yii as i am not using any of the widgets(which provides pagination feature) therefore i have code it but then i am unable to figure out as to why pagination is not been displayed</p>
  
  <p>this is my controller action</p>
  
  <pre><code>        $db1 = Member::model()-&gt;cat();
          $arr1 = CJSON::encode($db1);        
          $criteria=new CDbCriteria;
          $criteria-&gt;with=array('fcategorys ','member ');
          $criteria-&gt;together=true;
          $criteria-&gt;select=array('name','cid');
          $criteria-&gt;condition="category=cid";
          $criteria-&gt;group=array('cid','name');
          $pages = new CPagination(Categorys::model() -&gt; count($criteria));
  // Set Page Limit
  
  $pages -&gt; pageSize = 2;
  $pages -&gt; applyLimit($criteria);
  $this-&gt;render('paginationtrial',array('arr1'=&gt;$arr1,'pages'=&gt;$pages
  
      ));
  </code></pre>
  
  <p>view paginationtrial</p>
  
  <pre><code>$("#dispcat").html('');
      $.each(&lt;?php echo $arr1; ?&gt;, function (i, item) {
  
       $("#dispcat").append('&lt;div class="product1"&gt;&lt;div class="title"&gt;&lt;a href="&lt;?php echo Yii::app()-&gt;request-    &gt;baseUrl;?&gt;/index.php/product/productsincategory/id/' +  item.cid + '"&gt;&gt;&gt;' + item.name + '( ' +  item.prodincat + ')&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;');
  
      });
  
  
  //});
  $("#dispcat").fadeIn(2000);
  
  
  });
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;/div&gt;
  &lt;?php $this-&gt;widget('CLinkPager', array('pages' =&gt; $pages,
  )) ?&gt;
  </code></pre>
  
  <p>I don't get the pagination display for the above results</p>
  
  <p>browser renders  the error stating</p>
  
  <pre><code>**Relation "fcategorys " is not defined in active record class "Categorys".**
  </code></pre>
  
  <p>Please HELP let me know  where am i going wrong</p>