D
D
Dmitry Yakovlev2014-07-14 15:03:05
CodeIgniter
Dmitry Yakovlev, 2014-07-14 15:03:05

How to pass get parameters to route in Codeigniter?

Hello!
Posted in route.php The product function does not see the id parameter . Tell me how to pass $_GET parameters?
$route['basketball'] = "controller/product/?id=7";

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Entelis, 2014-07-14
@DmitriyEntelis

You clearly do not understand what GET is and how route
stackoverflow.com/questions/334708/get-parameters-...
works, but in general it is better not to do this.
You can also say by declaring a function
and codeigniter will automatically substitute the argument after the slash there.
Well, or if you manually configure code-igniter.ru/user_guide/general/routing.html
PS or am I confused and you need the opposite?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question