Welcome Guest, Not a member yet? Register   Sign In
Not sure to migrate to CI4
#1

I developed dozen of website with CI3. During the last days, I try to migrate one of my site to CI4. 

I'll be frank with you, it appears to me as a huge job and I'm not sure to continue with CI4. Furthermore, my code size noticeably increased.

In my CI3 version, I had many redirections in helpers, libraries or models. With CI4, redirections can only be performed from controllers. It adds a lot of complexity to my controllers. A simple example : in models I request data from DB, if something goes wrong, the redirection was performed from the model with CI3. Now I have to add return parameters to check in the controller if a redirection is needed. Since it can't be done before or after the controller, filters doesn't help. 

In my BaseController, I check if the user is logged, so I always connect to the DB. In my models, I need a new connection, because I'm working with several tables and I can't use the $table attribute. The other option is to send the DB handler to the constructor of the model (same problem for the sessions by the way),  but my code becomes more and more complex. 

Previously, data from form was trimmed with form validation. It is no longer possible. I have to add new lines of code to trim posted data. 

I could provide many other examples like the previous ones, but globally, my code becomes really more complicated, and I do not understand the CI4 philosophy that will allow me to keep my code clean and concise as it was for CI3.

I also found the documentation not clear, I had to search many times on the forum, lot of information is missing or is unclear.

I'm sorry for this negative feedback, but I really love CI3 and I through it could help... unless it is a cry for help.
Reply


Messages In This Thread
Not sure to migrate to CI4 - by imabot - 05-12-2020, 08:11 AM
RE: Not sure to migrate to CI4 - by bivanbi - 05-12-2020, 09:21 PM
RE: Not sure to migrate to CI4 - by imabot - 05-13-2020, 01:52 AM
RE: Not sure to migrate to CI4 - by John_Betong - 05-13-2020, 02:27 AM
RE: Not sure to migrate to CI4 - by imabot - 05-13-2020, 04:12 AM
RE: Not sure to migrate to CI4 - by John_Betong - 05-13-2020, 02:52 PM
RE: Not sure to migrate to CI4 - by admin0 - 05-14-2020, 08:07 AM
RE: Not sure to migrate to CI4 - by imabot - 05-14-2020, 08:13 AM
RE: Not sure to migrate to CI4 - by includebeer - 05-15-2020, 03:05 PM
RE: Not sure to migrate to CI4 - by albertleao - 05-14-2020, 09:37 AM
RE: Not sure to migrate to CI4 - by imabot - 05-18-2020, 02:09 AM
RE: Not sure to migrate to CI4 - by includebeer - 05-18-2020, 04:49 AM
RE: Not sure to migrate to CI4 - by bivanbi - 05-18-2020, 05:19 AM
RE: Not sure to migrate to CI4 - by 68thorby68 - 06-10-2020, 01:25 PM
RE: Not sure to migrate to CI4 - by jreklund - 06-13-2020, 08:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB