codeigniter-base-model
codeigniter-base-model copied to clipboard
⛔️DEPRECATED CodeIgniter base CRUD model to remove repetition and increase productivity
Recent changes appear to have broken some functionality. My app cannot run `update_by` or `delete_by`, I get an error that the method `where()` does not exist on _database. From what...
Hi, If you put an bad method name in callback/observer array (tested with `before_create`) before `created_at` or/and `updated_at` , nothing error hapening, and all data given in insert is lost....
CI 2.x support getting result as model if we pass the model class name when getting one or many result. After I read the source of `MY_Model`, I think it...
Is possbile to insert in more table of different model with different validation from only a model? I have tried but validation is every time the first declared. Example: public...
Getting all records and returning one row with field containing concatanated 'tags' field values. Here is how I do it with regular active record: ``` $this->db->select('GROUP_CONCAT(tags) as tags'); $this->db->from('articles'); $this->db->where("tags...
before_create triggers are called _after_ validation in insert() but before_update triggers are called _before_ validation. Is there a reason for this?
after created a feedback, Send a message, But that does not work, I write code like this class Feedback_model extends MY_Model { public $after_create = array('add_message'); ``` protected function add_message($data)...
line 395 of the latest core code.. $where = $this->trigger('before_delete', $where); after this code,you use $this->db->..... so ,the result of latest $where nerver worked. I don't know wheather I am...
Hi, I've just started using this base model and I'm refactoring a lot of my existing code. I read the documentation and the articles suggested in the readme, but still...
In `function relate(){}` just before `return $row;` you clear the `$this->_with` variable by setting it back to an empty array. This causes the relationship to only fire on the first...