Answer the question
In order to leave comments, you need to log in
Student project on CMS. Need criticism and support
Good time!
This project does not pretend to be anything, another cms system based on the mvc design model.
Written as you understand for offset. It has a primitive functionality and a transparent structure.
Of the features, I’ll just highlight:
* Lazy loading of models when accessing
* When starting a model or controller, linking already loaded models to class parameters
* CNC support
* Displaying system notifications on the page
For experienced web programmers, there will be nothing new here, but for students and those who study php on its own can be useful, therefore, I post it in the public domain.
The arsenal now has news and an admin panel for managing news
The design was created using Bootstrap3, and CKEditor is used as a text editor.
Earlier, I published an article on Habré, after which I was politely escorted to a toaster, I ask for your criticism and all possible help!
I would really like to learn more about the development of the cms system, this will give me and those who will participate in this a lot of experience! Let's share our thoughts!
Github
github.com/StartCMS/StartCMS
Demo
startcms.tmweb.ru
Answer the question
In order to leave comments, you need to log in
Well, where to start .... Read about SOLID, and then look at your code. You violated every principle.
Your models also don't quite do what they should. On a good note, models should encapsulate data, and services (for example, something like NewsManager) should deal with saving and editing them. Working with the database should also be placed in a separate layer ... etc. In short... everything is according to the principle of single responsibility.
It also makes sense to introduce support for template engines, to add, so to speak, an abstraction layer for this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question