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

@imabot
> . A simple example : in models I request data from DB, if something goes wrong, the redirection was performed from the model with CI3.

Can you give more details concerning "something goes wrong". and what action is taken?

I think this is the controller's job and the model is being used incorrectly. I think model should only request or perform actions on tables. Results should be returned to the controller which will decide the next action.

Helpers are only used to accept and return modified data.
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