How to get id from URL in codeigniter?
if you have to pass the value you should enter url like this
localhost/yoururl/index.php/products_controller/delete_controller/70
and in controller function you can read like this
function delete_controller( $product_id = NULL ) {
echo $product_id;
}
$product_id = $this->input->get('id', TRUE);
echo $product_id;
Check the below code hope that you get your parameter
echo $this->uri->segment('3');