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

[eluser]ivantcholakov[/eluser]
I've modified the hack for maintaining backward compatibility, so for me '_controller' suffix is not mandatory. But I prefer for new projects always to use the '_controller' suffix (for controllers) for newly created code. As the article mentioned you will use model names much often, so it is preferable model names to be cleaner and expressive. I hate seeing things like:

$this->users_model->...
$this->users_m->...

They uglify code in unacceptable for me level.

I think, the solution is nice, it merits to be implemented (with adaptation and BC) within CodeIgniter 3.

Of course, for your particular case it is your project and your own decision.


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