Welcome Guest, Not a member yet? Register   Sign In
Need help getting the current page id from the url
#2

[eluser]CroNiX[/eluser]
http://yoursite.com/your_controller/your...thing_else

Code:
class Your_controller extends CI_Controller {

  public function your_method()
  {
    $id = $this->uri->segment(3);
    $something_else = $this->uri->segment(4);
  }
}
http://ellislab.com/codeigniter/user-gui...s/uri.html


Messages In This Thread
Need help getting the current page id from the url - by El Forum - 01-20-2014, 11:57 AM
Need help getting the current page id from the url - by El Forum - 01-20-2014, 12:55 PM
Need help getting the current page id from the url - by El Forum - 01-20-2014, 12:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB