Hello!

I write my website, it grows and its complexity increases more and more, which of course does not suit me. I understand that you need to use the framework, but I have never worked with one of them. The task is that I have a Cyrillic domain and the links are also built in Russian (I don’t know how to call it differently). Example:

сайт.рф/страница/2

I tried to implement it in codeigniter, but everything is based on classes, and you can’t call them Russian. The question is whether it is possible to implement such a structure of the site on codeigniter (I really liked it), well, or advise another framework.

Thanks in advance. )

  • 7
    .rf, Russian links - fu! - Oleg
  • four
    uWeb it was stupid of you - Bender
  • 3
    > and their Russian language can not be called Who told you that? $ php -r 'class Website {}; var_dump (new Site ()); ' object (Site) # 1 (0) {} PS Yes, this is harmful advice :) But if the author’s domain is Cyrillic, I think that such a project cannot become worse :) - Ilya Pirogov
  • 2
    I am generally interested in whose bright minds the idea of ​​using national alphabets in a URL came to? How, interestingly, to enter such a site from an arbitrary (for example, someone else’s) browser? - avp
  • 2
    Well, wow, sunk. And soon there will be more and, who of course remembers pascal in Russian, used? Tin is not it? And then the domain of the Russian Federation and the links to the Cyrillic, mdyam, perhaps you just misunderstood that the domain of the Russian Federation is in no way connected with the fact that it simply must have Cyrillic addresses. IMHO this is nonsense. Tell the boss that he is stupid, and does not understand anything in sausage cuts. Except him on the site no one will go. Long incomprehensible links that are not normally forwarded (as written by @Shamanis). Actually, I would have refused this. - Artem

3 answers 3

Use the CodeIgniter framework. For him there is a simple solution: Russian language in the URL

    Slim - very light microfreemvork. To process Russian-language folders, you have to add urlencode() . For example, for comparison, сайт.рф/hello/world and сайт.рф/привет/мир :

     require 'Slim/Slim.php'; \Slim\Slim::registerAutoloader(); $app = new \Slim\Slim(); $app->get( '/hello/:name', function ($name) { echo "Hello, $name"; }); $app->get( '/'.urlencode('привет').'/:name', function ($name) { echo "Preved, $name"; }); $app->run(); 
    • But is there anything in this framework that I really appreciate in CI: 1) Form Validation 2) File Upload 3) XSS & CRSF 4) Template Parser 5) MVC 6) Active Record 7) Session 8) Image Manipulation, etc. ? Of course, maybe he doesn't need all this, if he is asked to expand the functionality of the site, then you have to write all these libraries in pure php? Can immediately take a great framework that weighs less than 1 mb ?! - Epexa
    • And X-Three, I just started to look at it for a small API. Sessions - yes. The rest is in php, handles, most likely. Among the thick frameworks there are other worthy ones. Holivorit does not make sense. - Sergiks
    • Silex looks like Slim, this list is present in it. Well, or Symfony2, or Yii. - Arseniy

    well ... there was no sadness, we started domains in Cyrillic ... Yes, the normal way out is mod_rewrite