Good evening! I am a novice web developer (bylokloder, if anyone is more comfortable). A few days ago I started writing the simplest CRM system, nothing supernatural - adding, deleting, editing tasks, convenient output, sorting, and some more trivial features I could think of. The fact is that after writing a couple of hundred lines of code, I realized that my "system" had become an ordinary, not logical, rabble of files that connect one to the other on the principle "to work." After reading a little about MVC, I realized that here I need quite an in-depth knowledge of PHP specifically, and OOP in particular. The question is this: could you advise me any literature, articles, or just advice from yourself, about the correct development of websites, the correct separation of code, maybe design, I don’t know how to put it right, or something something like "MVC for beginners", but where you don't need to know the OOP, so that I immediately take the right path, so to speak.

Closed due to the fact that the question is too general for the participants PashaPash , andreycha , fori1ton , Zelta , velikodniy 20 Apr '15 at 15:07 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • so maybe you better read about OOP? - zb '
  • OOP is always and everywhere needed! - bemulima
  • And why should I read about OOP, if I cannot design a simplest one without OOP? - andreyqin
  • Well yes for bydlosayta will go) - bemulima
  • one
    @bemulima, not true, not always and everywhere. - Oleg Arkhipov

3 answers 3

Koterov, Kostarev, "PHP 5" . Learn, there are serious sections on designing web applications.

  • Thank. In fact, I read half of this book, I just got to the PLO, but did not read further, because I decided to consolidate what I had already learned. Looks like the last section of the book "PHP5 Programming Techniques," the chapter "Code and Page Templates," is just what I’ll find useful. I will be glad to some advice. - andreyqin

/ me advises Django as the very representative of MVC, quite an intersny and convenient thing. I’m writing a site on it now, because I don’t want to get involved with a hoax. There is a news module, product catalog, feedback, file search with the help of manuals). A plus is the possibility of discussions, comments ... In short, I recommend. If you are interested and start picking, I’ll show the source code of my site (it's not that secret))). at puff

  • Django is MVT. Yes, the difference is subtle, but it is. - Zelta

Bydlokoder, if anyone is more convenient

+1 I respect reasonable self-criticism)


in the case, I propose to look at the Laravel framework, which I was so fond of! Everything is clear and simple, there is a site with Russian documentation (a link is given there). Of course, OOP is there, because MVC without OOP is impossible in principle, but the framework itself is so easy and understandable that after a month of another, you can’t imagine writing an adequate code without a namespace — not just OOP!