What would be the best way to get uri segment via parameter in controller? i have used following code but not working
uri as
class Home extends CI_Controller
{
public function index($para){
echo $para;
}
}
Above uri results in 404 page not found error.How to solve such problem and get the id as parameter in index function.