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 ?
Merged questions
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'];
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 |
|---|---|---|---|---|
| 0 | 11989 | en | https://en.ans.wiki/619/in-codeigniter-3-how-to-get-the-full-url-with-parameters | 7 |
Icons proudly provided by Friconix.