Never mind it is supposed to be $Setting->set('value',$now_run);
-
☆ A M B ☆
- 24,524 Posts
Yeah, dealing with "settings" type database tables can be awkward, since their field names are usually just "key" and "value". The system_settings table has those, as well as a few more - "xtype", "namespace", "area" and "editedon". Interesting looking at the entries in the table.
Here's a handy reference for the future:
http://bobsguides.com/modx-object-quick-reference.html
------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone:
http://bobsguides.com/modx.html
-
MODX Staff
- 10,725 Posts
If you want to see the changes to the settings in the same request you are modifying them in the database, you will need to reload the settings in addition to clearing the cache. There is a method available on the modX class called reloadConfig() that does both of these for you.