/**
  * @inheritdoc
  */
 public function disable()
 {
     foreach (CustomPage::find()->all() as $entry) {
         $entry->delete();
     }
     parent::disable();
 }
 public function actionIndex()
 {
     $pages = CustomPage::find()->all();
     return $this->render('index', array('pages' => $pages));
 }