Given this link:
localhost/abc/review?coupon=bskgnlsdgkj
How do I get the coupon value inside view?
I tried $_GET['coupon], but it didn't work.
You can use $this->input->get('coupon'); to get the value of url parameter.
But, I suggest you to get the parameter value with $this->input->get('coupon',TRUE); to applying XSS Security directly.
For information can be found on this link.
$this->input->get('name_of_the_parameter');codeigniter.com/user_guide/libraries/input.html$ci =& get_instance(); $ci->input->get('coupon');codeigniter.com/user_guide/general/…