• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to get string before the second slash as a parameter??

#6
(04-19-2018, 01:42 AM)ciadmin Wrote: You could use a routing rule, eg something like $route['(:any)/(:any)/(:any)'] = '$2/$1/$3';
See https://www.codeigniter.com/user_guide/g...uting.html

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?
Reply


Messages In This Thread
RE: how to get string before the second slash as a parameter?? - by imalegend - 04-19-2018, 11:15 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.