Beispiel #1
0
 public function __construct(Kernel $kernel)
 {
     $this->kernel = $kernel;
     $this->db = $kernel->getClass('dbEngine');
     $this->user = $kernel->getClass('User');
     $this->_initEngine();
 }
Beispiel #2
0
 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);
 }