Welcome Guest, Not a member yet? Register   Sign In
custom users routes? [SOLVED]
#10

[eluser]John_Betong_002[/eluser]
If I understand you correctly then I think you can use the standard config/routes.php


./application/config/routes.php
Code:
// Set your default path
  $route["default_controller"]      = "welcome_page";

// test for specific controllers
$x=array("(:any)",'about', 'contact_us','terms','blog','subscribe','specific_controler');
  foreach($x as $xx):
   $route[$xx] = "$1";
  endforeach;

// fall-through to your login section
// finally the Daddy of them all
  $route["(:any) = "login/$1"; // extract using $this->uri->uri_string() or segment(...)

 
 


Messages In This Thread
custom users routes? [SOLVED] - by El Forum - 10-14-2010, 07:39 AM
custom users routes? [SOLVED] - by El Forum - 10-14-2010, 05:26 PM
custom users routes? [SOLVED] - by El Forum - 10-14-2010, 10:29 PM
custom users routes? [SOLVED] - by El Forum - 10-15-2010, 07:23 AM
custom users routes? [SOLVED] - by El Forum - 10-15-2010, 10:19 AM
custom users routes? [SOLVED] - by El Forum - 10-15-2010, 10:57 AM
custom users routes? [SOLVED] - by El Forum - 10-16-2010, 12:08 PM
custom users routes? [SOLVED] - by El Forum - 10-16-2010, 12:34 PM
custom users routes? [SOLVED] - by El Forum - 08-03-2011, 05:25 PM
custom users routes? [SOLVED] - by El Forum - 08-04-2011, 09:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB