I need to know whether I should re-call my helper redirectIfNotLoggedIn()
inside ajaxFunction, since it's already in the constructor:
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?
}
}
Any help would be appreciated :)