public function __construct(Kernel $kernel) { $this->kernel = $kernel; $this->db = $kernel->getClass('dbEngine'); $this->user = $kernel->getClass('User'); $this->_initEngine(); }
public function __construct(Kernel $kernel) { $this->db = $kernel->getClass('dbEngine'); if (isset($_POST['loginform']) === true) { $this->_checkAuth(); } if ($this->_isGuest() === false) { $this->_buildUserInfo(); //$this->forceGuestUser(); } //print_r($this->userInfo); }