CodeIgniter Forums
$_GET - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: $_GET (/showthread.php?tid=23515)



$_GET - El Forum - 10-13-2009

[eluser]georgerobbo[/eluser]
Hello,

I am building a basic blog system in CodeIgniter. In general PHP you would use something like
Code:
<?php $id = $_GET['id']; ?>
and then parse whatever PHP you want to. However I want to use smart URL's in CodeIgniter such as
Code:
http://localhost/index.php/blog/id/2

How would I got about doing this?


$_GET - El Forum - 10-13-2009

[eluser]BrianDHall[/eluser]
Check out the URI segment class: URI Segment Class Manual


$_GET - El Forum - 10-13-2009

[eluser]georgerobbo[/eluser]
Awesome. Thanks very much. =)