Welcome Guest, Not a member yet? Register   Sign In
$_GET
#1

[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?
#2

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

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




Theme © iAndrew 2016 - Forum software by © MyBB