auto generating models from DB solution |
(12-20-2016, 12:16 AM)buoncri Wrote: On other hand you can use a my_model like these: Now you say that I recall that for a while I did my own generalised model to which I could post instructions like PHP Code: $this->base_model->get_single_row('table_name', $id = 127); But that was a while ago and I must admit in the end it became more cumbersome than useful. After all the CI query builder can be extremely compact all by itself at times without the need for the general base model. PHP Code: $this->db->from('table_name')->where('id', 127)->get()->row_array(); So for the sake of maintainability I do not do it any more. |
Messages In This Thread |
auto generating models from DB solution - by brian85 - 12-19-2016, 01:01 PM
RE: auto generating models from DB solution - by PaulD - 12-19-2016, 04:24 PM
RE: auto generating models from DB solution - by brian85 - 12-20-2016, 12:57 PM
RE: auto generating models from DB solution - by buoncri - 12-20-2016, 12:16 AM
RE: auto generating models from DB solution - by PaulD - 12-20-2016, 11:35 AM
RE: auto generating models from DB solution - by brian85 - 12-20-2016, 01:06 PM
RE: auto generating models from DB solution - by Diederik - 12-20-2016, 02:11 AM
RE: auto generating models from DB solution - by brian85 - 12-20-2016, 01:00 PM
|