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

[eluser]bhbutter123[/eluser]
I have a controller and model with the same class name (photos) and when I try to use the photos model in the photos controller I get a cannot redeclare class photos error(as I should). Is there a way I can have a model and controller with the same name because it would get annoying to have to keep typing out _model whenever I include the 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