codeigniter-base-model icon indicating copy to clipboard operation
codeigniter-base-model copied to clipboard

⛔️DEPRECATED CodeIgniter base CRUD model to remove repetition and increase productivity

Results 103 codeigniter-base-model issues
Sort by recently updated
recently updated
newest added
trafficstars

Hello, it's better to execute relate method at start of after-get triggers because maybe we need related data after make relation. Thanks

instead of allowing only one where filter, this allows passing a where array as the first param to `get_by()` and `get_many_by()`.

This will allow outside classes to be able to read properties of the MY_Model class when necessary.

i'm add 2nd parameter to real delete record if soft delete is true add new method restore() to set field 'deleted' back to 0 (undeleted)

# other than hacking $_POST use native form_validation->set_data($data); # and added 2nd param for function validate(data,parital) to only apply rules for submitted data. (useful when updating row, as u can...

This is the replace() method I tried sending in a previous PR.

Hi, Is there a reason for the existence of the third param on line 240? ``` $ids[] = $this->insert($row, $skip_validation, ($key == count($data) - 1)); ``` Thanks

MY_Model line 197 (suggested code): $results_count = count($result); foreach ($result as $key => &$row) { $row = $this->trigger('after_get', $row, ($key == $results_count - 1)); }