I was just curious what a rule of thumb was for models. As a rule, I use them only in situations where I need to add / edit or update database records for an object.
However, I am creating the application at that moment, which has a "config" table, which contains various data, such as the last update, which will control when certain functions will be displayed in the application. In this case, I will most of all have to retrieve data from the config table. Should I use these configuration methods in the model?
I am interested to know how more experienced coders approach the MVC methodology in pseudo-random CI examples (for example, which methods apply to the same object that you would use in the model and controller) would be most useful.
"Should I use these configuration methods in the model?"
, , , , . ( MY_Model) , , .
, , .
, , , . xml ini , , . , , .
, , MVC, . CodeIgniter , , , config_item().
M V & C , CSS HTML, .
, MVC . , ( CI) , .
Source: https://habr.com/ru/post/1741871/More articles:reflection paths between d2d points - mathКлассические упражнения для компьютерного зрения/обработки изображений? - image-processingSystem.InvalidOperationException: нельзя присоединить сущность, которая уже существует - c#Moving a transaction with a MySQL connector in VB.net - mysqljQuery event.stopPropagation not working on - jquerySorting a nested hash in a ruby - sortingTrueType (TTF) font dump characters (glyphs) to bitmaps - bitmapThe file was added to git in commit n. How to add it instead of nm? - gitObject Oriented Game Design in Java: How to handle an NPC batch? - javaHow can I read from a method that returns a file descriptor in Perl? - syntaxAll Articles