Welcome Guest, Not a member yet? Register   Sign In
URL / Controler realted
#2

[eluser]xwero[/eluser]
adding to the url isn't difficult. You can add all sorts of things after the method segment (service_name). In your view you can do something like following code when the url helper is loaded
Code:
<?php echo site_url('services/service_name/locations'); /* output : http://site.com/index.php/services/service_name/locations */ ?>

To retrieve that segment you have to use the segment or the rsegment (routed segment) method from the uri library
Code:
if($this->uri->segment(3) == 'locations'){ /* do something */ }


Messages In This Thread
URL / Controler realted - by El Forum - 12-26-2007, 09:35 AM
URL / Controler realted - by El Forum - 12-26-2007, 09:42 AM
URL / Controler realted - by El Forum - 12-26-2007, 04:20 PM
URL / Controler realted - by El Forum - 12-26-2007, 04:21 PM
URL / Controler realted - by El Forum - 12-26-2007, 04:27 PM
URL / Controler realted - by El Forum - 12-26-2007, 04:31 PM
URL / Controler realted - by El Forum - 12-26-2007, 04:49 PM
URL / Controler realted - by El Forum - 12-26-2007, 05:07 PM
URL / Controler realted - by El Forum - 12-26-2007, 07:15 PM
URL / Controler realted - by El Forum - 12-26-2007, 11:21 PM
URL / Controler realted - by El Forum - 12-27-2007, 01:12 AM
URL / Controler realted - by El Forum - 12-27-2007, 09:01 AM
URL / Controler realted - by El Forum - 12-27-2007, 09:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB