Welcome Guest, Not a member yet? Register   Sign In
Question about module usage
#2

[eluser]John_Betong_002[/eluser]
If I understand your problem correctly then maybe try this method.


// ./application/config/routes.php
Code:
// tested OK
  // $client = $_SESSION['counter'] % 5;

  $client = $auth_module_client;
  switch($client)
  {
    case 'A':  $route["default_controller"]  = "c_client_A"; break;
    case 'B':  $route["default_controller"]  = "c_client_B"; break;
    case 'C':  $route["default_controller"]  = "c_client_C"; break;
    default:   $route["default_controller"]  = "c_client_D"; break;
  }
 
 




[/code]


Messages In This Thread
Question about module usage - by El Forum - 06-16-2011, 11:24 AM
Question about module usage - by El Forum - 06-16-2011, 11:45 PM
Question about module usage - by El Forum - 06-17-2011, 03:21 AM
Question about module usage - by El Forum - 06-17-2011, 05:51 AM
Question about module usage - by El Forum - 06-17-2011, 11:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB