Using multiple database on same CodeIgniter 2.x application and issue with URI Routing Using multiple database on same CodeIgniter 2.x application and issue with URI Routing codeigniter codeigniter

Using multiple database on same CodeIgniter 2.x application and issue with URI Routing


Thanks Sundar for your advice.We can achieve this just by little hack in core of codeigniter.

  1. Open system/core/router.php in your text editor.
  2. Go to Line number 264 .... function _validate_request($segments)
  3. Replace $segments[0] with $segments[1] OR
  4. Add this code at line 270

    $x=$segments;$a=1;for($i=0;$i<(count($segments)-1); $i++){ $segments[$i]=$x[$a]; $a++;}