A new field is added to the ThinkPHP table, but adding add() and modifying save() are unsuccessful

A new field is added to the ThinkPHP table, but adding add() and modifying save() are unsuccessful

Problem analysis:
Thinkphp, due to the field caching mechanism, generally caches the fields of the database in the file. When we add and modify the fields in the database, the cache file does not change, so when we add or save , Cannot succeed.

Solution:
delete the field cache under Runtime/Data/_fields/, or delete the entire Runtime file directly.

Guess you like

Origin blog.csdn.net/u010991531/article/details/103934575