Welcome Guest, Not a member yet? Register   Sign In
model's constructor with parameters
#11

(04-06-2015, 04:55 AM)casa Wrote: No need "_model" in the name.

you need "_model" or something else to prevent class name collision
example:
you have a controller named Users and you make a model named Users what do you think will happen?
Reply


Messages In This Thread
model's constructor with parameters - by casa - 04-05-2015, 10:33 AM
RE: model's constructor with parameters - by casa - 04-05-2015, 09:01 PM
RE: model's constructor with parameters - by s4if - 04-06-2015, 12:18 AM
RE: model's constructor with parameters - by casa - 04-06-2015, 01:57 AM
RE: model's constructor with parameters - by casa - 04-06-2015, 02:23 AM
RE: model's constructor with parameters - by casa - 04-06-2015, 04:55 AM
RE: model's constructor with parameters - by Athov - 04-07-2015, 03:04 AM
RE: model's constructor with parameters - by casa - 04-07-2015, 04:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB