Welcome Guest, Not a member yet? Register   Sign In
Current page url
#1

[eluser]_TTT_[/eluser]
how to get full page url in CI ?

http://site.net/site/index/param/


$page_url = ?
#2

[eluser]InsiteFX[/eluser]
Code:
$route['default_controller'] = "page";

$route['page/:any'] = "page/index/$1";

InsiteFX
#3

[eluser]Twisted1919[/eluser]
Code:
$this->load->helper('url');
echo current_url();
echo site_url(uri_string());
#4

[eluser]Dennis Rasmussen[/eluser]
To get the current URL you can use the functions explained in the documentation below.
http://ellislab.com/codeigniter/user-gui...elper.html

To get a part of the URL you can use the class/functions in the documentation below.
http://ellislab.com/codeigniter/user-gui...s/uri.html




Theme © iAndrew 2016 - Forum software by © MyBB