codeigniter-base-model
codeigniter-base-model copied to clipboard
⛔️DEPRECATED CodeIgniter base CRUD model to remove repetition and increase productivity
Hi, I have a simple database which uses joins as follows : Table 1 contains portfolio items: Portfolio_items portfolio_id name description Table 2 contains portfolio categories: Categories categories_id name Table...
Hi as per the documnetation $_db_group = 'group_name'; will make this->_db to point on defined db but how can I make a persistant connection to both db and query both...
How to i will add many to many relationship ? is it possible ?
If we are sure that we need only one record, than why not to make that execution faster by limiting the result to one record.
Hi friends I am new to base model deleted_by & deleted_at is not functioning properly null value is updated can anybody help whats wrong in my code. class Article_model extends...
The function `delete_by()` will always return 1, even if nothing was deleted. To fix this the function should return `$this->db->affected_rows();` instead of `$result` Detailed example below with added code for...
the where() methods in _set_where() could have the 3rd argument as FALSE, so an arbitrary SQL string isn't backticked?
The class will automatically use the default database connection, and even load it for you if you haven't yet. You can specify a database connection on a per-model basis by...