Welcome Guest, Not a member yet? Register   Sign In
controller and model with same name
#4

[eluser]CroNiX[/eluser]
I name all my models: controllerName_model. It avoids your problem and I think it makes for more semantic code.

Like:
$this->photo_model->get_all();
makes it really easy for you to understand at a glance what is going on. You're getting info from your photo model.


Messages In This Thread
controller and model with same name - by El Forum - 12-13-2009, 08:20 PM
controller and model with same name - by El Forum - 12-13-2009, 09:11 PM
controller and model with same name - by El Forum - 12-13-2009, 10:54 PM
controller and model with same name - by El Forum - 12-14-2009, 12:15 PM
controller and model with same name - by El Forum - 08-01-2014, 07:07 AM
controller and model with same name - by El Forum - 08-01-2014, 07:31 AM
controller and model with same name - by El Forum - 08-01-2014, 07:42 AM
controller and model with same name - by El Forum - 08-01-2014, 07:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB