![]() |
CodeIgniter 3 to 4 Upgrade Helper - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Addins (https://forum.codeigniter.com/forumdisplay.php?fid=34) +--- Thread: CodeIgniter 3 to 4 Upgrade Helper (/showthread.php?tid=78565) |
RE: CodeIgniter 3 to 4 Upgrade Helper - win123139 - 06-17-2024 (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 ? RE: CodeIgniter 3 to 4 Upgrade Helper - kenjis - 06-18-2024 (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. RE: CodeIgniter 3 to 4 Upgrade Helper - win123139 - 06-19-2024 (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 RE: CodeIgniter 3 to 4 Upgrade Helper - kenjis - 06-19-2024 If you can send Pull Requests, feel free to send. RE: CodeIgniter 3 to 4 Upgrade Helper - win123139 - 07-07-2024 (06-19-2024, 01:28 AM)kenjis Wrote: If you can send Pull Requests, feel free to send.Sorry I encountered a rather strange bug $this->form_validation->run() always returns false I tried $this->form_validation->error_array() but didn't see any rules violation RE: CodeIgniter 3 to 4 Upgrade Helper - win123139 - 07-07-2024 (06-19-2024, 01:28 AM)kenjis Wrote: If you can send Pull Requests, feel free to send.Sorry I encountered a strange bug when $this->form_validation->run() always returns false. I tried $this->form_validation->error_array() but didn't see any rules violation ![]() RE: CodeIgniter 3 to 4 Upgrade Helper - win123139 - 09-16-2024 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 |