Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dylan Lopez
Added: Jan 30, 2018 7:56 AM
Views: 23
https://www.codeigniter.com/user_guide/libraries/uri.html
  1. $this->load->library('uri');
  2.  
  3. //Methods
  4. $product_id = $this->uri->segment(3, 0);
  5.  
  6. $this->uri->rsegment(3, 0);
  7. $this->uri->slash_segment(3);
  8. $this->uri->slash_rsegment();
  9. $this->uri->uri_to_assoc();
  10. $this->uri->ruri_to_assoc();
  11. $this->uri->assoc_to_uri();
  12. $this->uri->uri_string();
  13. $this->uri->ruri_string();
  14. $this->uri->total_segments();
  15. $this->uri->total_rsegments();
  16. $this->uri->segment_array();
  17. $this->uri->rsegment_array();