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

v0.5.0 was released!
https://github.com/kenjis/ci3-to-4-upgra...r/releases
Reply
#12

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.
Reply
#13

@kenjis, Thank you.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#14

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
Reply
#15

v0.7.2 bug fix released!
https://github.com/kenjis/ci3-to-4-upgra...r/releases
Reply
#16

hello, how can I use this tool, i didnt understand well.
Reply
#17

Read the docs: https://github.com/kenjis/ci3-to-4-upgra...I3ToCI4.md
If you have questions, feel free to ask.
Reply
#18

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?
Reply
#19

@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.
Reply
#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




Theme © iAndrew 2016 - Forum software by © MyBB