I have a controller name “HomeController” where I have the following methods:
class HomeController extends CI_Controller
public function __construct()
public function ShipDetails()
public function UserType()
//echo “Guest User”;
Now what I want is to redirect to the page named “ShippingDetails.php” (which is written inside the method “ShipDetails()) via router.
if I am using the above code the url is showing the following:
” http://localhost/Sandip/CodeIgniter/HomeController/ShipDetails ” i,e., the controller class as well as controller method.I just wanna hide the Class & method in the URL. How can I do this? Please help.Novice in PHP-CI.
Is it possible to redirect to “routes” from controller method,if so how?