CodeIgniter Forums

Full Version: using parked domains as codeignitaer controllers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi , i have an application built on codeigniter, and there is some controllers like this :

that resellers is directory , controller_a is name of controller and method_a is name of function and input is posted input values, and resellerID is id of reseller,

how i can have this : equals to equals to equals to
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']=="") {
$_SESSION['resellerID'] = '123';

echo $_SESSION["resellerID"];
else {
echo 'session is not setted !';

and use this resellerID anywhere i need to get reseller ID,