Calculate value with data from another model |
05-06-2021, 02:57 AM
(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 )
|
Messages In This Thread |
Calculate value with data from another model - by groovebird - 03-29-2020, 05:08 AM
RE: Calculate value with data from another model - by ZoeF - 03-29-2020, 06:27 AM
RE: Calculate value with data from another model - by groovebird - 03-29-2020, 06:38 AM
RE: Calculate value with data from another model - by ZoeF - 03-29-2020, 06:46 AM
RE: Calculate value with data from another model - by wdeda - 05-05-2021, 06:23 AM
RE: Calculate value with data from another model - by InsiteFX - 05-06-2021, 02:57 AM
RE: Calculate value with data from another model - by marciano.dili - 05-22-2021, 10:35 PM
RE: Calculate value with data from another model - by skaleon - 11-16-2021, 08:40 AM
|