public function __construct() { $this->_display_html = false; if (VGet::loggedout()) { $this->_msg = ActionMessages::custom_good('You\'ve been logged out'); } try { $this->_session = new Session(); if (VPost::login(false)) { $this->_session->login(); } } catch (Exception $e) { $this->_msg = ActionMessages::custom_wrong($e->getMessage()); } }