public function getUser() { $userExists = $this->checkUsernameExists(); if ($userExists !== false) { $company_id = $this->_glbUser->company_id; if ($this->_fncUser === false) { Yii::$app->session->set('company_id', $company_id); $this->_fncUser = FncUser::findByUsername($this->username); } } return $this->_fncUser; }
private function initUserTables($company_id) { $user = new User(); return $user->initUserTables($company_id); }