function loginUserWithUsername($user) { $hiddenSweet = new controller(); echo $hiddenSweet->loginWithUsername($user, getSlimRequest()); }