Consider the below URI:
<?php
class Test extends CI_Controller {
public function index()
{
echo 'Welcome to texinterest';
}
}
Welcome to texinterest
url_name.com/index.php/Test/index
<?php
class Test extends CI_Controller {
public function index()
{
echo 'Now you are in index function';
}
public function one()
{
echo 'Now you are in function 1';
}
public function two()
{
echo 'Now you are in function 2';
}
}
Now you are in index function
Now you are in function 1
Now you are in function 2
$route['default_controller'] = 'Test';