public function actionLogin() { $account = new User(); $account->email = $_POST['email']; $auth = $account->checkPassword($_POST['password']); if ($auth == true) { session_start(); $_SESSION['user_auth'] = true; } View::display('index.tmpl'); }