A
A
Alexey Vesnin2017-10-30 16:39:58
Frameworks
Alexey Vesnin, 2017-10-30 16:39:58

Which routing php is better and more practical on GET parameters or with string parsing?

Hello. The question is in the header of the site.
Why the question:
1. If the site is simple, then everything is clear with the parsing of the string,
but if it is also a directory with a large nesting structure, then what to do?
don't kick me too hard, i'm just starting to learn php

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stanislav Pochepko, 2017-10-30
@DJZT

See how routing works in popular frameworks. If you want, then routing from any framework can be taken separately and used in your project. Also look for simple routing libraries

E
Egor, 2017-10-30
@egormmm

If you use Get parameters, you won't get Seo url. The route to the controller must be in url segments.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question