Using session data within a model |
(02-13-2020, 08:01 AM)Fido L Dido Wrote:(02-12-2020, 06:01 PM)dave friend Wrote: Since you have the $session object in your controller you could also pass it to the model when the model is constructed. Replying to my own post! I've finally fixed this. I realised that in my constructor method I also needed to place a call to the parent constructor method. All working now! |
Messages In This Thread |
Using session data within a model - by Fido L Dido - 02-12-2020, 05:14 AM
RE: Using session data within a model - by InsiteFX - 02-12-2020, 01:25 PM
RE: Using session data within a model - by Fido L Dido - 02-13-2020, 04:47 AM
RE: Using session data within a model - by dave friend - 02-12-2020, 06:01 PM
RE: Using session data within a model - by Fido L Dido - 02-13-2020, 04:50 AM
RE: Using session data within a model - by Fido L Dido - 02-13-2020, 08:01 AM
RE: Using session data within a model - by Fido L Dido - 02-13-2020, 09:14 AM
RE: Using session data within a model - by dave friend - 02-13-2020, 09:48 AM
|