I am working on a small web application. In my application I follow the following approach.
Small overview of system
If the employees of the client want to login into the system then the url pattern should be like this :
(www.example.com/ibm/user/login)
ibm - is the client
user - is controller
login - is method of user controller
How to achieve this?
Thanks Sundar for your advice. We can achieve this just by little hack in core of codeigniter.
Add this code at line 270
$x=$segments; $a=1; for($i=0;$i<(count($segments)-1); $i++) { $segments[$i]=$x[$a]; $a++; }