/**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $session = $this->setAdminGridViewSessionVariables('WebPage');
     $model = new WebPage('search');
     $model->unsetAttributes();
     // clear any default values
     $model->attributes = $session->get('admin_current_filter');
     $pager = new CPagination();
     $pager->pageSize = Yii::app()->getModule('webPages')->adminPageSize;
     if ($page = $session->get('admin_current_page')) {
         $pager->currentPage = $page - 1;
         // la numérotation commence à 0...
     }
     /** @noinspection PhpUndefinedMethodInspection */
     $this->render('admin', array('model' => $model, 'pager' => $pager));
 }