Welcome Guest, Not a member yet? Register   Sign In
Building Codeigniter URLs with variable segments
#6

[eluser]InsiteFX[/eluser]
You will need to use the names form your foreach loop.
Code:
<?php echo anchor('site/'.$city_name, 'My Cities', 'title="Cities"'); ?>

<?php echo anchor('site/'.$city_name.'/'.$area_name, 'My City Area', 'title="City Area"'); ?>

<?php echo anchor('site/'.$city_name.'/'.$area_name.'/'.$outlet_name, 'My City Area Outlet', 'title="City Area Outlet"'); ?>


Messages In This Thread
Building Codeigniter URLs with variable segments - by El Forum - 06-09-2012, 12:56 PM
Building Codeigniter URLs with variable segments - by El Forum - 06-09-2012, 03:12 PM
Building Codeigniter URLs with variable segments - by El Forum - 06-09-2012, 04:50 PM
Building Codeigniter URLs with variable segments - by El Forum - 06-09-2012, 05:08 PM
Building Codeigniter URLs with variable segments - by El Forum - 06-10-2012, 02:45 AM
Building Codeigniter URLs with variable segments - by El Forum - 06-10-2012, 04:35 AM
Building Codeigniter URLs with variable segments - by El Forum - 06-10-2012, 11:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB