A
A
Alexander Romanov2015-03-16 10:56:24
CMS
Alexander Romanov, 2015-03-16 10:56:24

How to parse CNC?

The topic is beaten, there are many implementations on the Internet, but they are not quite suitable for me. I would like to hear people's opinions and options. In general, the essence of the problem: there are links, for example:
country/russia - leads to a static page;
country/russia/hotels - leads to a dynamic page with products;
country/russia/hotels/about - leads to a static page.
How can this thing be parsed? Parsing through slashes is not an option, because. these are not modules / handlers, but simply an alias invented by the user. There is an option to move the url to a separate table, but each time you will have to additionally access this table. You can store urls in files, this is the best option in my opinion. What do you think? :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Vsk, 2015-03-16
@maet

0. Forget about CNC.
1. Get familiar with routing.

F
FanatPHP, 2015-03-16
@FanatPHP

What's the problem with accessing a small table once with a unique key?
Especially if it's all custom aliases.
If this is user input, then where are you going to store it, except for the database?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question