how to get string before the second slash as a parameter?? |
(04-19-2018, 01:42 AM)ciadmin Wrote: You could use a routing rule, eg something like $route['(:any)/(:any)/(:any)'] = '$2/$1/$3'; hi my friend I tried to do what you say , but I couldn't to do that... and I user this code in route.php : $route['([a-zA-Z]+)'] = '?center=$1'; and $route['([a-zA-Z]+)'] = 'index.php/?center=$1'; can you help me? |
Messages In This Thread |
how to get string before the second slash as a parameter?? - by imalegend - 04-18-2018, 09:29 AM
RE: how to get string before the second slash as a parameter?? - by tomdchi - 04-18-2018, 12:50 PM
RE: how to get string before the second slash as a parameter?? - by skunkbad - 04-18-2018, 01:25 PM
RE: how to get string before the second slash as a parameter?? - by imalegend - 04-19-2018, 12:46 AM
RE: how to get string before the second slash as a parameter?? - by ciadmin - 04-19-2018, 01:42 AM
RE: how to get string before the second slash as a parameter?? - by imalegend - 04-19-2018, 11:15 AM
RE: how to get string before the second slash as a parameter?? - by imalegend - 04-19-2018, 11:34 AM
|