Welcome Guest, Not a member yet? Register   Sign In
Cannot pass variables from Controller to Model
#7

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!
Reply


Messages In This Thread
RE: Cannot pass variables from Controller to Model - by albertleao - 05-29-2016, 10:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB