function loginUser($userid) { $hiddenSweet = new controller(); echo $hiddenSweet->login($userid, getSlimRequest()); }