• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
$_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. =)


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.