Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter 3 to 4 Upgrade Helper
#20

(This post was last modified: 04-11-2024, 07:50 PM by win123139.)

(12-01-2023, 02:24 PM)kenjis Wrote: @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.
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
Reply


Messages In This Thread
CodeIgniter 3 to 4 Upgrade Helper - by kenjis - 02-08-2021, 01:45 AM
RE: CodeIgniter 3 to 4 Upgrade Helper - by kenjis - 02-10-2021, 10:49 PM
RE: CodeIgniter 3 to 4 Upgrade Helper - by kenjis - 02-19-2021, 01:10 AM
RE: CodeIgniter 3 to 4 Upgrade Helper - by kenjis - 02-21-2021, 04:20 PM
RE: CodeIgniter 3 to 4 Upgrade Helper - by kenjis - 03-18-2021, 11:06 PM
RE: CodeIgniter 3 to 4 Upgrade Helper - by kenjis - 09-29-2021, 02:20 AM
RE: CodeIgniter 3 to 4 Upgrade Helper - by kenjis - 01-14-2022, 01:34 AM
RE: CodeIgniter 3 to 4 Upgrade Helper - by kenjis - 01-14-2022, 11:07 PM
RE: CodeIgniter 3 to 4 Upgrade Helper - by kenjis - 02-28-2023, 01:35 AM
RE: CodeIgniter 3 to 4 Upgrade Helper - by kenjis - 03-15-2023, 11:17 PM
RE: CodeIgniter 3 to 4 Upgrade Helper - by kenjis - 03-15-2023, 11:53 PM
RE: CodeIgniter 3 to 4 Upgrade Helper - by kenjis - 08-10-2023, 07:35 PM
RE: CodeIgniter 3 to 4 Upgrade Helper - by kenjis - 11-13-2023, 10:50 PM
RE: CodeIgniter 3 to 4 Upgrade Helper - by kenjis - 12-01-2023, 02:24 PM
RE: CodeIgniter 3 to 4 Upgrade Helper - by win123139 - 04-11-2024, 01:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB