CodeIgniter 3 to 4 Upgrade Helper |
(12-01-2023, 02:24 PM)kenjis Wrote: @GreTaurus Implement the feature and send a pull request.Sorry for dump question but i have a code $this->db->count_all_results('cms_news'); and get a errorr Call to undefined method Kenjis\CI3Compatible\Database\CI_DB::count_all_results() How can i use countAllResults like CI4 . If your helper doesn't have that function, how can i extend it? . Can i use both CI3 and CI4 syntax in the same model ? (06-17-2024, 09:42 PM)win123139 Wrote: How can i use countAllResults like CI4 . Please write your code according to CI4 syntax without using the upgrade helper feature at all. (06-17-2024, 09:42 PM)win123139 Wrote: If your helper doesn't have that function, how can i extend it? You cannot extend it. Create your fork project and add code. (06-17-2024, 09:42 PM)win123139 Wrote: Can i use both CI3 and CI4 syntax in the same model ? No. (06-18-2024, 09:12 PM)kenjis Wrote:(06-17-2024, 09:42 PM)win123139 Wrote: How can i use countAllResults like CI4 . Thank you for your reply. There is no way to inherit or extend it without forking the project. I just want to add or modify if there is a missing function in a simple way
If you can send Pull Requests, feel free to send.
can you add "or_like" and "group_start" , "group_end" convert function to CI_DB_query_builder ? i think it's pretty easy but i don't know if there is currently any way to support these functions in the model
|
Welcome Guest, Not a member yet? Register Sign In |