Welcome Guest, Not a member yet? Register   Sign In
Put Transactions in the Controller or Model
#7

[eluser]asciiCode[/eluser]
Yes I think you understand my question correctly. But I am unsure how to properly structure the code. Your suggestion is to put all of the database transactions in the models. I agree on a theoretical point of view. However, passing $trans='' into the functions gets messy.

That is why I thought the transactions may be easier to manage in the controller. But I wanted to make sure that was the proper design decision because theoretically database stuff should be in the module not the controller.

However, if you read this post for more information you will see the last post reference "transactions scripts (controllers)" so maybe this is a common way to do things

http://ellislab.com/forums/viewthread/164839/


Messages In This Thread
Put Transactions in the Controller or Model - by El Forum - 09-23-2010, 02:58 PM
Put Transactions in the Controller or Model - by El Forum - 09-23-2010, 03:19 PM
Put Transactions in the Controller or Model - by El Forum - 09-24-2010, 08:42 AM
Put Transactions in the Controller or Model - by El Forum - 09-24-2010, 09:25 AM
Put Transactions in the Controller or Model - by El Forum - 09-24-2010, 09:55 AM
Put Transactions in the Controller or Model - by El Forum - 09-24-2010, 10:20 AM
Put Transactions in the Controller or Model - by El Forum - 09-24-2010, 10:36 AM
Put Transactions in the Controller or Model - by El Forum - 09-24-2010, 10:43 AM
Put Transactions in the Controller or Model - by El Forum - 09-24-2010, 11:07 AM
Put Transactions in the Controller or Model - by El Forum - 09-24-2010, 12:31 PM
Put Transactions in the Controller or Model - by El Forum - 05-05-2011, 08:28 AM
Put Transactions in the Controller or Model - by El Forum - 06-09-2011, 04:44 AM
Put Transactions in the Controller or Model - by El Forum - 01-29-2012, 02:59 AM
Put Transactions in the Controller or Model - by El Forum - 12-15-2013, 04:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB