AppGini 5.98
In hooks/tablename.php
or hooks/__global.php
, add this in the global scope (outside any function definitions):
// Change tablename and fieldname to actual table and field names define('tablename.fieldname.MinYear', 2010); define('tablename.fieldname.MaxYear', 2030); // Dynamic dates also works: define('tablename.fieldname.MinYear', date('Y') - 1); // = last year define('tablename.fieldname.MaxYear', date('Y') + 2); // = 2 years ahead
Recent Comments