Ben yapıcı zaten beri, redirectIfNotLoggedIn() ajaxFunction içeride benim yardımcı yeniden aramak gerektiğini bilmeniz gerekir:
class Group extends Controller {
function Group() {
parent::Controller();
redirectIfNotLoggedIn();
}
function ajaxFunction() {
//I am called via AJAX
//Do I need to call redirectIfNotLoggedIn() again?
//Or is the constructor called whenever I access this function via AJAX?
}
}
Herhangi bir yardım mutluluk duyacağız :)