Welcome Guest, Not a member yet? Register   Sign In
Sending data from one controller to another
#1

Hi

I need to send data from one controller to another.

Now from what I've read, I shouldn't need to do this, but I think I do. I'll explain why.

I have an application that has an activity log, so I need to log every transaction made by every controller. Logic tells me I should have an LOG controller which processes each entry and then displays when required etc.

SO to achieve this, after each transaction that is performed by each controller, I would then need to pass that data to the LOG controller for entry into the log table.

Currently I am sending data from each controller method to the LOG Model for processing. So this involves setting the date, serializing data etc.

BUT surely it would be better to send the data from each controller to a LOG controller?

If that's even possible, how would i achieve that?

Your thoughts

Thanks
Alan
Reply


Messages In This Thread
Sending data from one controller to another - by frobak - 04-20-2016, 08:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB