Question #619   Submitted by Answiki on 10/04/2021 at 08:07:34 PM UTC

In CodeIgniter 3, how to get the full URL with parameters ?

Answer   Submitted by Answiki on 10/04/2021 at 08:10:37 PM UTC

In CodeIgniter 3, the best way to get the full URL, including parameters is to concatenate the CodeIgniter function current_url() with the server variable $_SERVER['QUERY_STRING'] according to the following line :


$url = current_url().'?'.$_SERVER['QUERY_STRING'];

2 events in history
Answer by Answiki on 10/04/2021 at 08:10:37 PM

In CodeIgniter 3, the best way to get the full URL, including parameters is to concatenate the CodeIgniter function current_url() with the server variable $_SERVER['QUERY_STRING'] according to the following line :


$url = current_url().'?'.$_SERVER['QUERY_STRING'];

Question by Answiki 10/04/2021 at 08:07:34 PM
In CodeIgniter 3, how to get the full URL with parameters ?
# ID Query URL Count

Icons proudly provided by Friconix.