Answer the question
In order to leave comments, you need to log in
Can't think of a route
The problem is this.
The site has categories (sections if you want).
The format of their links is: site.ru/razdel site.ru/razdel2 site.ru/razdel3, etc.
I can’t figure out how to correctly compose a route so that it doesn’t jam other controllers?
Answer the question
In order to leave comments, you need to log in
Routing order in CI: from private to general. Those. first describe the route for sections, and then for everything else.
I don't know how in CodeIgniter, but is it possible to set the sequence of route matching? So that the rest of the routes try to match first, and yours for the categories is the last one?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question