Welcome Guest, Not a member yet? Register   Sign In
Calculate value with data from another model
#6

(This post was last modified: 05-23-2021, 04:15 AM by InsiteFX. Edit Reason: Added note )

All your business logic should be done in the Model. The Controller acts as a switch board get data
from Model then send data to View.

I would create a calculateDates() Method in your Model then send the data back to the Controller.

Updated: 05-23-2021

Just a note here you can also use libraries for business logic if you do not want to use the model.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Calculate value with data from another model - by InsiteFX - 05-06-2021, 02:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB