• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using parked domains as codeignitaer controllers

#2
i find this way but i don't know it is right solution or not,

i can set some rules into route.php configuration file, like this :

if ($_SERVER['HTTP_HOST']=="otherdomain1.com") {
$_SESSION['resellerID'] = '123';
}

if(isset($_SESSION["resellerID"])){
echo $_SESSION["resellerID"];
}
else {
echo 'session is not setted !';
}

and use this resellerID anywhere i need to get reseller ID,
ressan.ir
CI is nice Heart
Reply


Messages In This Thread
RE: using parked domains as codeignitaer controllers - by nasser.man - 02-14-2016, 09:06 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.