Welcome Guest, Not a member yet? Register   Sign In
Update from C2.1 to C4.1
#1

(This post was last modified: 04-05-2021, 09:30 AM by Padawa.)

Hello,

I created in 2011 a website based on CI 2 and now it's time for me to review its design and features.
  • Can you give me some tips for updating this website ?
  • Can the months of development spent on version CI 2.1 be reused "easily" for this update or do I have to start from scratch ?
  • Is it possible to switch from version CI 2.1 to version CI 4.1 without going through step CI 3 ?
  • I have not yet looked closely at how the CI 4 version works, but has the principle of the CI 2 version been kept? Will I be "lost" if I watch how the CI 4 version works ?
Thank you in advance for your answers.
Reply
#2

Hello,

Having no response, did I post this topic in the wrong thread?
Is the only solution to start from scratch?

Thank you in advance for your answers
Reply
#3

Best to start with a fresh install of CI4 and migrate your site's functionality across.

https://codeigniter.com/user_guide/insta...e_4xx.html

Quote:CodeIgniter 4 is a rewrite of the framework and is not backwards compatible. It is more appropriate to think of converting your app, rather than upgrading it. Once you have done that, upgrading from one version of CodeIgniter 4 to the next will be straightforward.
Reply
#4

(04-07-2021, 08:55 AM)craig Wrote: Best to start with a fresh install of CI4 and migrate your site's functionality across.

https://codeigniter.com/user_guide/insta...e_4xx.html

Quote:CodeIgniter 4 is a rewrite of the framework and is not backwards compatible. It is more appropriate to think of converting your app, rather than upgrading it. Once you have done that, upgrading from one version of CodeIgniter 4 to the next will be straightforward.

Thank you for your reply.

But since I'm going from version CI2 to version CI4 directly, that's not going to be a problem?
The link talks about updating version CI3 to CI4, not version CI2 to CI4  Sad
Reply
#5

(This post was last modified: 04-07-2021, 09:25 AM by craig.)

CI2 is even further away from CI4 than what CI3 is, so the same still applies. CI4 is not backwards-compatible with CI2 either Big Grin
Reply
#6

So I feel that nights are going to be very short for the next few weeks!  Wink
Reply
#7

(This post was last modified: 04-07-2021, 05:57 PM by John_Betong.)

@Padawa,
> So I feel that nights are going to be very short for the next few weeks! Wink

I hope it is an enjoyable experienceSmile

I would be tempted to start with a copy of the “welcome_message”, modify and create your own “home page”. Once complete add your menu structure and create relevant links to blank pages.

Afterwards all you have to do is fill in the content Smile

Let us know your progress.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB