S
S
Streetfox82018-03-30 01:20:48
PHP
Streetfox8, 2018-03-30 01:20:48

How to implement the auto-title function for a site in php cnc?

Hi all!
Who knows how to implement the auto-title function for a site in php cnc?
I just write a link, for example mysite.ru/krasnodar/ I go to it, I already have an html + php template in advance, it takes "krasnodar" and converts it to Krasnodar and displays it in the header on the site, and so any city is registered and displayed. How to smartly implement? Thank you

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
McBernar, 2018-03-30
@McBernar

Why such difficulties?
Just take the URI, i.e., krasnodar, look for this key in the previously created city array and output the corresponding value. And transliterating letters is not the best solution.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question