function __construct()
 {
     parent::__construct();
     // redirect to login
     if ($this->getUserId() == "") {
         header("Location: ../login/");
     }
 }
 function __construct()
 {
     parent::__construct();
 }