Download Url segment site codeigniter.com user_guide >> http://qka.cloudz.pw/download?file=url+segment+site+codeignitercom+user_guide codeigniter uri segment tutorial $this- uri- segment(3) in codeigniter codeigniter uri segment not working how to set uri segment in codeigniter codeigniter uri segment in view codeigniter uri routing uri segment in php codeigniter get url Segments are numbered from left to right. For example, if your full URL is this: example.com/index.php/news/local/metro/crime_is_up. The segment CodeIgniter URL class's function, we can retrieve information from URI string. can use the URI class in CodeIgniter to retrieve information from URI segment. Typically there is a one-to-one relationship between a URL string and its corresponding controller class/method. The segments in a URI normally follow this 14 Sep 2015 $url1 = base_url(); // Site URL $url2 = $this->uri->segment(1); // Controller - instrument $url3 = $this->uri->segment(2); // Method - instrument 7 Jun 2012 codeigniter.com/user_guide/general/controllers.html#remapping <?php $this->uri->segment(3); // city $this->uri->segment(4); // area 8 Nov 2010 Segment-Based URLs with Query Strings in CodeIgniter 2 Site URL * * Extended to allow a combination segment-based URLs and query 10 Oct 2013 So segment refers to your url structure segment. By the above example, $this->uri->segment(3) would be 'metro' , while $this->uri->segment(4) CodeIgniter User Guide. from left to right. For example, if your full URL is this: By default the function returns FALSE (boolean) if the segment does not exist. 29 Jul 2013 How about just having a function for each page? This follows CodeIgniter's usual URI pattern example.com/class/function/id/ - something like By default, URLs in CodeIgniter are designed to be search-engine and human friendly. The segments in the URL, in following with the Model-View-Controller http://nxmzcwf.forumsit.com/viewtopic.php?id=46, https://gist.github.com/67c4ab7b989bfb5953ed3a082845059f, http://gknnnqc.lifeforums.ru/viewtopic.php?id=2, http://telegra.ph/Yamaha-a12-speaker-manual-09-27, https://gist.github.com/5a141a60ac1d76603bf8ac484e3bc3da