Issue with pagination

Hey Guys,

I am having trouble with pagination. I have an index action:


	 * Lists all models.


	public function actionIndex()


		$model=new SWall;

		// Uncomment the following line if AJAX validation is needed

		// $this->performAjaxValidation($model);




			$model->user_id = Yii::app()->user->getId();



				Yii::app()->user->setFlash('success', 'Deine Nachricht wurde gespeichert.');





		// criteria

		$criteria=new CDbCriteria(array(


	        'order'=>'updated_at DESC',

	        'with'=>array('commentCount', 'author'),



		// dataprovider

		$dataProvider=new CActiveDataProvider('SWall', array(












in the view I have an update link like this:

<?php $url = Yii::app()->createUrl('/sWall/update?id='.$data->id); echo CHtml::link(CHtml::image(Yii::app()->baseUrl."/images/build-icons/_0018_Pencil.png"), $url, array('submit' => $url, 'class'=>'icon')); ?>

Now if I click on that link on page 1 it will work with any item and the item will be loaded for update properly. But if I go to page 2 and click on that link it will display the item from page one.

On page 1 I have items with Ids 11-20 and on page two I have items with Ids 1-10, if I click on the link for ID 1 it will display ID 11 for editing. However if I hover the link it displays the proper URL. Anybody has an idea what might be wrong there?

Any help is appreciated! Thanks in advance!


just solved it … for anyone having the same issue:

'submit' => $url

was causing the issue