1

I'm trying to make working routes with question mark in CodeIgniter. I wan't to do smth like this:

$route['smth?(:any)'] = 'smth/smth/smth_fce/$1';

But problem is, in CodeIgniter it tooks just string before ? and string after it it won't pass to the function. Is there any way, to make it working?

Jan Kožušník
  • 683
  • 3
  • 16
  • 30

1 Answers1

0

$route['...'] gets your url and in url anything after ? is consider as query string. So directly you can't achieve what you want here.. but you can check this post Custom URI routing by query string with CodeIgniter? which has a similar problem and solution to it.

Community
  • 1
  • 1
Ariful Haque
  • 3,662
  • 5
  • 37
  • 59