-
Notifications
You must be signed in to change notification settings - Fork 475
Open
Description
I am trying to get a simple observer working, but to no avail.
I am using the following code (as shown in the documentation)
class Business_model extends MY_Model
{
public $_table = 'business';
public $before_get = array('timestamps');
protected function timestamps($row)
{
$row['created_at'] = $row['updated_at'] = date('Y-m-d H:i:s');
return $row;
}
}
Checking the variables using a break point, shows that the object returned does not contain the created_at or updated_at data.
Do I need to enable the triggers somehow?
I am using CI3 btw.
Metadata
Metadata
Assignees
Labels
No labels