CodeIgniter 3 to 4 Upgrade Helper |
I have updated the sample news tutorial.
https://github.com/kenjis/ci3-to-4-news Now it works with CI 4.3.2 on PHP 8.2.
v0.7.0 has been released!
https://github.com/kenjis/ci3-to-4-upgra...r/releases Now you can use PHP 8.2. But your app code may not work with PHP 8.2. See https://www.php.net/manual/en/migration82.php
v0.7.2 bug fix released!
https://github.com/kenjis/ci3-to-4-upgra...r/releases
Read the docs: https://github.com/kenjis/ci3-to-4-upgra...I3ToCI4.md
If you have questions, feel free to ask.
I hve been using this tool upgrade my project from CI3 to CI4, is there any work around $this->db->group_start and $this->db->group_end statements?
@GreTaurus Implement the feature and send a pull request.
Or you can manually upgrade only the class that is using group_start() to CI4. See https://codeigniter4.github.io/CodeIgnit...y-grouping You are already using CI4, so you can use it without the upgrade helper. The upgrade helper is just a wrapper for CI4. (12-01-2023, 02:24 PM)kenjis Wrote: @GreTaurus Implement the feature and send a pull request.Thank you, I'm having trouble doing a large migration project from CI3 to CI4, so I think your helper will help a lot. But there are a few problems when I try the some demo code 1/ error limit An uncaught Exception was encountered Type: Error Message: Call to undefined method Kenjis\CI3Compatible\Database\CI_DB::limit() Filename: D:\laragon\www\ci4-migrate\app\Models\Post_model.php Line Number: 17 --- It's error in when i used limit in Post_model $this->db->limit($limit, $offset); 2/ error paginate Type: ErrorException Message: Undefined property: stdClass::$total_rows Filename: D:\laragon\www\ci4-migrate\vendor\kenjis\ci3-to-4-upgrade-helper\src\CI3Compatible\Library\CI_Pagination.php Line Number: 145 -- It's error in when i used in view echo $this->pagination->create_links(); Sorry for my poor English and I have no CI coding experience. Please guide to fix this situation. Can you show how to migrate pagination from ci3 to ci4 |
Welcome Guest, Not a member yet? Register Sign In |