[eluser]Marc Arbour[/eluser]
Hi friends.
I have thrown the gloves down with CI for the 1st time since I've used it. I have briefly tought to do it the old PHP way but said to myself that I should ask you guys for help. I have a clean new CI 2.1 running the latest LAMP architecture.
I am trying to make some mathematical calculations before the controlers executions (for ALL controllers) in MY_Controller and use the variable's content (the result) in the controllers. I have tried every approaches I've found on this forum as well as others (stackoverflow to name just that one). I've copy/pasted/changed/tested code like I had never done before. 8 hours later and more then 4 dozen threads... I admit defeat"
Whatever I do and try, MY_Controller (in application/core) works because I can use the variables in the views... But not in the controllers.
Could someone find it in their heart to copy/paste me some working code? I am interested in using the data produced in the MY_Controller to further process in controllers.
Regards.