Pagination on yii 1 page without a model, is not working

I am working on an application in yii 1 and i am trying to implement pagination on a page that doesn't have a model. The SiteController has an method called actionViewCampaign($token) that receives a token. The view receives the dataProvider variable that should make it paginate but it isn't. The actual links don't show.

Here is the action/method.

public function actionViewcampaign($token) {
     
        $token = Yii::app()->getRequest()->getParam('token');
        
        $campaign = Campaign::model()->findBySql("select * from campaign where token='$token' ");

        $count = Yii::app()->db->createCommand("
        SELECT COUNT(*) AS total FROM fund_campaign fc, users u 
        WHERE fc.donor_id = u.id 
        AND fc.campaign_id = " . $campaign->id . " 
        ORDER BY fc.id DESC ")->queryColumn();


        $images = CampaignGallery::model()->findAllByAttributes(array('campaign_id' => $campaign->id));

        $location = Yii::app()->db->createCommand("select ci.name,co.name from campaign c
        inner join city ci
            on ci.id = c.location
        left join country co
            on co.id = ci.country_id")->queryScalar();
        $donors = Yii::app()->db->createCommand("select count(*) from (select  count(*)  from fund_campaign fc 
            where fc.campaign_id = $campaign->id
            group by fc.donor_id) n;")->queryScalar();
        $totalDonations = Yii::app()->db->createCommand("select sum(fc.foodstamp_volume) from fund_campaign fc
        where fc.campaign_id = $campaign->id")->queryScalar();
        $served = Yii::app()->db->createCommand("select count(*) from fund_campaign fc , voucher_batch_pins vbp 
        where vbp.batch_id = fc.batch_token and vbp.is_used =1 and fc.campaign_id = $campaign->id")->queryScalar();

        $sql = "SELECT concat(u.firstname,' ',u.lastname) fullname,fc.foodstamp_volume,fc.comment,fc.create_time 
                FROM fund_campaign fc, users u 
                WHERE fc.donor_id = u.id 
                AND fc.campaign_id = " . $campaign->id . " 
                ORDER BY fc.id 
                DESC";


        $dataProvider = new CSqlDataProvider($count, array(
            'totalItemCount' => $count[0],
            'pagination' => array(
                'pageSize' => 5,
            ),
        ));
        

        $socialFeeds = Yii::app()->db->createCommand($sql)->queryAll();

        $video = Video::model()->findAllByAttributes(array('campaign_id' => $campaign->id));
        

        $user = $this->getUser(Yii::app()->user->id);

        $this->render(
            'viewcampaign', 
            array(
                //'getData' => $getData,
                'campaign' => $campaign, 
                'location' => $location,
                'donors' => $donors, 
                'totalDonations' => $totalDonations, 
                'images' => $images, 
                'served' => $served, 
                'socialFeeds' => $socialFeeds, 
                'video' => $video, 
                'user' => $user,
                'token'=> $token,
                'dataProvider' => $dataProvider
            ));
    }

in my view

 <?php $this->widget('zii.widgets.grid.CGridView', array(
                            'dataProvider'=> $dataProvider, 
                            )); ?>

Can any one help?