codeigniter-base-model
codeigniter-base-model copied to clipboard
⛔️DEPRECATED CodeIgniter base CRUD model to remove repetition and increase productivity
when set $has_many variable and execute get_all method i got an error in line 493 ``` php public $has_many = array("family_member" => array("model" => "Form_family_model")); ``` So please edit documentation...
Hello, how we can use the like statement ??? exmp : $this->db->like('title', 'match'); // Produces: WHERE title LIKE '%match%' get all posts that title contains the "match" string. Tnx.
public function delete($id) ..... $this->trigger('before_delete', $id); I can do stuff with the id $this->trigger('after_delete', $result); No id passed so maybe $result should be array('result' => $result, 'id' => $id)
Is it possible to set OR condition for any query? I need to set condition for following query : select \* from users where username='abc' or email='[email protected]';
Hi, Can we have multiple validation rules? Condider a registration form where email ID is required valid email along with other fields like password, dob etc., however on - update...
How i can relate 3 models in single call? Just in case, i have 3 models: - Market_model => Market_tree_model => Market_tree_pc_model Can i call this in 1 call like...
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 {...
Hello, this CI Extension Class helped me a lot for encapsulating some native plumbing db model methods. When I searched for a "insert_batch()" method in this extended class (for further...
I am struggling to write a custom "with()" method that involves two joins. I'll try to breakdown my tables: Users - generic table, users can be joined to other tables...