calling different pages

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
omphilesithole
Posts: 26
Joined: 2015-01-12 13:01

calling different pages

Post by omphilesithole » 2015-03-26 12:40

hi, i am trying to call different pages according to the group id entered, for instead i have operator and communication groups and they have different home pages so i have something like this on the home.php file but its not working:

if($_SESSION['memberGroupID'] = 4 ){
include("operators.php");
}elseif($_SESSION['memberGroupID'] = 5){
include("communications.php");
}else{
include("homepage.php");
}

please assist me!

peebee
AppGini Super Hero
AppGini Super Hero
Posts: 352
Joined: 2013-03-21 04:37

Re: calling different pages

Post by peebee » 2015-03-27 00:26

Try adding your code to the login_ok function in _global.php in the hooks folder instead of home.php

http://bigprof.com/appgini/help/advance ... s#login_ok

Post Reply