/**
  * Manages all models.
  */
 public function actionAdmin($room)
 {
     $model = new Light('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Light'])) {
         $model->attributes = $_GET['Light'];
     }
     $model->room_id = $room;
     $this->render('admin', array('model' => $model, 'mRoom' => Room::model()->findByPk($room)));
 }