public function actionPastTripsPaginationHandler($id) { $model = new Trip(); $model->retrievePastTrips($id); $this->renderPartial('_past-trips', array('trips' => $model->getData(), 'pagination' => $model->getPagination())); }