We can pass values from views to controller 2 ways.
Method 1 :
URI sement method.
In view,
<a href="controller/method/your values">Pass values</a>
In controller,
$value=$this->uri->segment(3);
Method 2 :
Normal get method.
In view,
<a href="controller/method?id=10">Pass values</a>
In controller,
$value=$this->input->get("id");
Method 1 :
URI sement method.
In view,
<a href="controller/method/your values">Pass values</a>
In controller,
$value=$this->uri->segment(3);
Method 2 :
Normal get method.
In view,
<a href="controller/method?id=10">Pass values</a>
In controller,
$value=$this->input->get("id");
Social Plugin