Cannot pass variables from Controller to Model |
Setting a user_id variable available to the model is bad practice. The goal is to have as much modularity as possible and tying your models to a variable set in your MY_Controller will make it dependent.
Codeigniter is simply one of the tools you need to learn to be a successful developer. Always add more tools to your coding arsenal!
|
Messages In This Thread |
Cannot pass variables from Controller to Model - by allenlee - 05-29-2016, 06:54 AM
RE: Cannot pass variables from Controller to Model - by Tpojka - 05-29-2016, 08:30 AM
RE: Cannot pass variables from Controller to Model - by skunkbad - 05-29-2016, 08:42 AM
RE: Cannot pass variables from Controller to Model - by ciadmin - 05-29-2016, 08:48 AM
RE: Cannot pass variables from Controller to Model - by PaulD - 05-29-2016, 09:24 AM
RE: Cannot pass variables from Controller to Model - by allenlee - 05-29-2016, 10:55 AM
RE: Cannot pass variables from Controller to Model - by albertleao - 05-29-2016, 10:57 AM
RE: Cannot pass variables from Controller to Model - by ivantcholakov - 05-29-2016, 12:25 PM
RE: Cannot pass variables from Controller to Model - by Narf - 05-30-2016, 04:34 AM
RE: Cannot pass variables from Controller to Model - by spjonez - 06-01-2016, 05:55 AM
|